Auto login and status check before page retrievalAut

Good afternoon experts!

Problem
I collect comics and have a LOT of them! In my database program (Collectorz) I have a link section that will take me to a particular page on a price guide website (or any site for that matter) and display the current information relating to that comic.
However, the site requires a login and password (which has been covered before, I know) before accessing the page I wish to view.

Question
Is there a way to click these links and have it check if I'm already logged into the guide site and act appropriatly? ie. log me in if it's my 1st visit to the site then go to the information or go straight to the information if I'm already logged in? Then, with each subsequent click of a different comic open the new page in the same tab rather than a new tab each time.

That sounds a little long winded but I'm guessing you'll get the idea!!
Up until now I've just opened the site manually and then left the browser open to do this but it opens a new tab for each click which whilst not being a problem as such does mean I end up with screen loads of tabs!! I usually use Firefox but will happily use any other browser if it solves this for me!!