Checking if session id is a current session.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dspohn

    Checking if session id is a current session.

    I am currently developing a shopping cart application. When a user is
    not logged into the system and they add something to their cart, it is
    stored in the database with their session id (so that their items can
    be kept while they are not logged in). If user is logged in, it just
    stores their items with their unique customer id.

    I want to be able to clear out the baskets of sessions that are no
    longer active (expired). I will write a cron job to do this.

    My question is:
    If a have an actual session id is there a way to see if it is still an
    active session?

  • dspohn

    #2
    Re: Checking if session id is a current session.

    forgot to mention that I am using Apache/2.0.54 and PHP/4.3.11 on
    Linux.


    Thanks in advance,
    dspohn

    Comment

    • Sergej Andrejev

      #3
      Re: Checking if session id is a current session.

      as far as I know ther is session.save_pa th in phpinfo() wich contains
      directory to tmp apache data. Sessions must be stored there with
      session id as a name

      Comment

      Working...