New topic: 

can i retrive a session from another session ??

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

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        gecomail          Post subject: can i retrive a session from 
another session ??Posted: Wed Dec 05, 2012 8:43 am                         
Joined: Tue Oct 25, 2011 4:28 am
Posts: 32                hi, if i set session time out like infinite ...
and i connect to my webApp (and my session id is 123456789..)
then my connection fail (when i was to order webPage), but the session is not 
closed because timeout is infinite..
when i can reconnect to my webApp, can i get the last session (with id 
123456789..) ??? from my new session ...
and re see the lost order  webpag and his content ??   
                             Top                DaveS          Post subject: 
Re: can i retrive a session from another session ??Posted: Wed Dec 05, 2012 
9:50 am                                 
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4325
Location: San Diego, CA                There is no way for you to "know" what 
the last sessionID was (I am talking from a PHP point of view here)

The best you could hope for (and I would not do this).... is store something in 
a session variable the is unique to the user (something that would NOT change 
from session to session).... and then scan thru the session files looking for 
that key.... and use the data in the located  file to repopulate values in the 
current session.  I am purposely not being specific here, as I highly do not 
reccomend this approach... but leave it up to you to figure out the details if 
you want to take that risk.      
_________________
Dave Sisemore
MacPro, OSX Lion 10.7.4 RB2012r1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                Stretch          Post subject: 
Re: can i retrive a session from another session ??Posted: Wed Dec 05, 2012 
11:38 am                       Real Software Engineer          
Joined: Tue Jul 14, 2009 4:33 pm
Posts: 48                I think you've confused what Session.Timeout is for.

Session.Timeout is a browser-side idle timeout so that if a user walks away 
from their computer for a period of time, you can automatically log them out.

http://docs.realsoftware.com/index.php/WebSession.Timeout

For what it's worth, the amount of time that a session will live after a user 
disconnects is 3 minutes, and you can't change that.      
_________________
Greg O'Lone
Software Engineer
Real Software  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
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