Results 1 to 4 of 4

Thread: Query @ SESSION

  1. #1
    Join Date
    Aug 2007
    Location
    Gorakhpur, India
    Posts
    254
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question Query @ SESSION

    How a way this site manage session (using PHP $SESSION variables or cookies). In the special case of browser crash or close browser without logout what you perform. Is any way is possible to manage session if the page is not loaded until the session expiration time.

    In this site there are following Cookies variables;
    bbsessionhash 3fa01e70cca4544709aca6321d95ae1f
    bblastactivity 0
    bblastvisit 1210832026

    As I am guessing bblastvisit is a time of last page load and bbsessionhash is a Sessionid.
    What is bblastactivity in this case.
    Is Cookie session management is more secure than $SESSION Superglobals.
    Last edited by ashukla; 15th May 2008 at 07:23.
    Anurag Shukla
    A man who never makes mistake is the man who never does anything! Theodre Rosvelt!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Query @ SESSION

    As far as I remember our vBulletin stores its sessions in the database, so one can have access to it at any time from the server side. Those three cookies you mention are related to autologin functionality and to inform the software which threads should be marked as new and to mark a user as active or inactive (or something like that).

    $SESSION uses cookies as well - they are not two separate mechanisms, one uses the other.

  3. #3
    Join Date
    Aug 2007
    Location
    Gorakhpur, India
    Posts
    254
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Query @ SESSION

    I have gotten answer some part of my query. But
    In the special case of browser crash or close browser without logout what you people perform. Is any way is possible to manage session if the page is not loaded until the session expiration time.
    Anurag Shukla
    A man who never makes mistake is the man who never does anything! Theodre Rosvelt!

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Query @ SESSION

    What do you mean by "manage session"? Sessions are cleared when a page is requested - a script scans all the sessions and removes the ones that timed out. If you close the browser, the session on the server will not get destroyed immediately. Only the client side stored in cookies will. Next time the user visits the site, the old session will be invalidated because of a lack of cookies and a new one will be created. At least those are my assumptions in a general case, not vB specific.

Similar Threads

  1. select query with like
    By ag.sitesh in forum Qt Programming
    Replies: 19
    Last Post: 14th April 2008, 05:28
  2. Mysql query question
    By twells55555 in forum Qt Programming
    Replies: 1
    Last Post: 29th June 2007, 23:41
  3. Aborting a query set on a TableModel
    By Quid in forum Qt Programming
    Replies: 2
    Last Post: 5th July 2006, 22:36
  4. combining query lists
    By jayw710 in forum Qt Programming
    Replies: 4
    Last Post: 10th February 2006, 21:17
  5. Record update windowd entered data saving
    By MarkoSan in forum Qt Programming
    Replies: 56
    Last Post: 18th January 2006, 18:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.