470,862 Members | 1,835 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,862 developers. It's quick & easy.

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?

Oct 19 '05 #1
2 1294
forgot to mention that I am using Apache/2.0.54 and PHP/4.3.11 on
Thanks in advance,

Oct 19 '05 #2
as far as I know ther is session.save_path in phpinfo() wich contains
directory to tmp apache data. Sessions must be stored there with
session id as a name

Oct 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Paul Yanzick | last post: by
2 posts views Thread by Stuart | last post: by
2 posts views Thread by Dave | last post: by
7 posts views Thread by David Lozzi | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.