• Post Reply Bookmark Topic Watch Topic
  • New Topic

About Sessions  RSS feed

 
Raj chiru
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q: if you closed the window then what happens to your session?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing will happen.

The server has no idea that your window has been closed. Eventually, the session will time out.
 
Duc Vo
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
raj chiru wrote:Q: if you closed the window then what happens to your session?

From server view: nothing as Bear said
From client view: the clients "normally" lost their sessions, will have new sessions when access to the site again.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on how you interpret the "window". A browser tab? A clone window? A browser instance? In the first and second case the same session will just be reused (as long as it is not timed out on the server side) and in the third case a new session will be created.
 
Sidd Kulk
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Few websites keep the session running even after we close the window. In fact even when we access the website days later, it still keeps the session running.

Something like the Remember me checkbox on google or yahoo...How does this work?

Cheers
Sid
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sidd Kulk wrote:Few websites keep the session running even after we close the window. In fact even when we access the website days later, it still keeps the session running.

Something like the Remember me checkbox on google or yahoo...How does this work?

Cheers
Sid


I'll poke around cookies for that... That's where all the remembering action is
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!