Hi,

Iam in still dilemma.I want to do it through coding.Users may go up with different browsers.Whatever the browser type be.Whenever a logged-in user opens another browser or tab with the same url the session(Cookie) of that user remains same.If the user doesnt logout and close the browser then also the session is not getting destroyed in drupal.It means it is maintaining the cookie without expiry.What exactly i need is
1)when a logged-in user closes the browser without logout then the session(cookie) get destroyed and new session has to be created.
2)When a logged-in user open the url in another tab also he has to get homepage.New session has to be created.

Please help me in making out this module.
Waiting for reply
Manohari

Comments

geodaniel’s picture

See this recent discussion about logging users out when they close their browser. For number 2) though, I don't think it's possible to have two different sessions running on different tabs within the same browser instance.

manohari’s picture

Hi,

Thank you so much for sending the information.
I think iam not clear with my second condition please help for this also.I got solved by first one.

The problem which exactly iam facing is that when a user is logged-in and open another tab in the same browser with the same url he has to get home page.If the links are to be opened in another tab then it has to show linked pages instead of home page.Can this be possible.
If so how

Once again thank you for sending the information.

nanny1979’s picture

In IE 6.0 the second option is working when you set the session.cookie_lifetime to 0. But this will not work in Mozilla Firefox, safari.

computer_jin’s picture

Hi every one,

I am using drupal 6.I want to register a session when anonymous user visit my site and when he clicks product page sessions should be register and i want to access this session in other pages....
can any one help me how can i do this ......

Thanks,

--
Azhar uddin
Technical Lead
email : engr.azharuddin@gmail.com
skype : computer_jin