Ask Experts Questions for FREE Help !
Ask
    srinivasITB's Avatar
    srinivasITB Posts: 1, Reputation: 1
    New Member
     
    #1

    May 30, 2007, 12:02 AM
    How to identify the browser instance using javascript
    Hi ,
    I am web developer in CGI-PERL. I developed the project, which manages the session too.
    But I have problem with the browser. I am keeping the session id in the url itself. After I login , if I open another window using File->New->Window it is opening another browser instance with the same url. So I am not able to identify which is first instance. Can anyone give me solution how to solve this problem... I am thank full to them

    Regards
    Srinivasa Rao
    jstrike's Avatar
    jstrike Posts: 418, Reputation: 44
    Full Member
     
    #2

    Jun 1, 2007, 09:15 AM
    It sounds like you want to be able to login in one browser, open another browser from the menu and be logged in but be able to identify that the new computer is not the one that initially logged in.

    I'm almost certain that you are not going to be able to do this using the menu or ctrl-n options... There might be a work around but keep in mind that there are reasons browsers share the same session and any solution could get messy, especially if the servers are behind a load balancer.

    When the first browser logs in you could add a parameter to the URL after the session id...
    Code:
    http://www.myurl.com?sessionid=..whatever..&compid=1
    Instead of using the file menu or ctrl-n to open a new browser place a button on the page that will use JavaScript to increment the id and open the URL in a new window.
    Code:
    http://www.myurl.com?sessionid=..whatever..&compid=2
    In your Perl scripts you could then use the compid as part of the name you use to store the info in the session.

    This is a pretty ugly solution but it might work with some tweaking...

    HTH.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

How to I turn Javascript on? [ 1 Answers ]

My Javascript is disabled, and nothing I can do will get it back. The only help I get is to enable scripting in Security, IntenetOptions, however, it says it already is. Reinstalling the latest Javascript does not help. I'm at my wit's end, is there anything else I can do?

Javascript [ 2 Answers ]

I want to learn to make games, like runescape, out of javascript. Where is somewhere can learn that? To go to runescape go to www.runescape.com, duh! Anyway. Need help.

Javascript [ 1 Answers ]

Does internet explorer support javascript anymore? I sometimes get that question from a site. Thank you. Brenda.


View more questions Search