User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 427,685 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,246 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 3845 | Replies: 1
Reply
Join Date: Nov 2006
Posts: 12
Reputation: AnzJ is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
AnzJ AnzJ is offline Offline
Newbie Poster

Determine if session exists

  #1  
Nov 6th, 2006
Hey Guys,
For my counter, which is written in php, I need to check if a session exists. That way, a user clicking around the site won't increase the counter with each click.

Is there any way to check if a session already exists, so that i can increase the counter only when a new session is created?

Thanks!
Rock On
~AnzJ
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2005
Posts: 66
Reputation: guideseeq is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
guideseeq guideseeq is offline Offline
Junior Poster in Training

Re: Determine if session exists

  #2  
Nov 7th, 2006
Use in-built function session_is_registered()
_________________________________
`~@#\^%&*/\.<.\/-|+|_!:;..=?>
Nonprofilt public funds
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 11:22 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC