New topic: 

Session.Quit and reconnecting to Web session

<http://forums.realsoftware.com/viewtopic.php?t=47871>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        plim          Post subject: Session.Quit and reconnecting to Web 
sessionPosted: Mon May 13, 2013 8:57 pm                         
Joined: Tue Jan 24, 2006 11:04 am
Posts: 118
Location: Singapore                Hi, I hope someone can help me better 
understand how Webssions behave after a user closes the browser.

This is what I understand of how RS Web behaves:
1. The App itself will only quit if Autoquit is set to True and all sessions 
are closed. The App.Timeout setting controls the time it takes the App to quit 
in this case.
2. Every browser window connecting to the webapp will have a new session 
created for it. If you close the window, the session will quit after a short 
period of time.
3. If you use Session.quit in code, then the client's browser will display the 
usual "disconnected" page and the session will quit as in 2.
4. If you set the Session.Timeout parameter, the timeout event will trigger and 
you can run whatever code you want, including Session.quit to disconnect the 
user.

Now here's the bit I don't understand: In the Help page for Websession.Quit, it 
says: "Ends the session. The user can still reconnect to the same session if 
they do so before the time specified in WebApplication.Timeout."

How does one actually connect back to the same session as before, after closing 
the browser? When I connect using a new window, a brand new session is created 
for that connection. (I understand from this forum that one could user cookies 
to identify an existing user and programmatically reload his last state.) The 
wording of the help above implies that it is actually possible to reconnect the 
client's browser window to the old session.

Also, does Webapplication.Timeout also determine how long the session object 
hangs around for after session.quit before it actually is destroyed?

Thanks in advance.      
_________________
RealStudio Enterprise Latest Version Windows 7 64bit sp1
http://www.sorted.com.sg  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to