View Single Post
Old 12-22-2009, 11:15 PM  
goldfish
Confirmed User
 
goldfish's Avatar
 
Join Date: Jan 2009
Location: Somewhere east of the Mississippi
Posts: 723
Quote:
Originally Posted by GrouchyAdmin View Post
You can fill up your session dir and/or have issues with cookies. Remember to destroy your session somewhere, too, and setup a cleanup crontab.

That's ugly, but it'll likely do what you want.

Code:
@start_session();
$_SESSION['clicks'] = (isset($_SESSION['clicks'])) ? (int)$_SESSION['clicks']+1 : 1;
if ($_SESSION['clicks'] > 1){
  header ("location: join form");
}
and thats where the problem lies, if I destroy the session they can get to more content, right?

I could put the seesion destroy inside the members area but that still leaves a bunch open
__________________
ICQ: 566990329

"There is no rest for the wicked... and porn purveyors!

Last edited by goldfish; 12-22-2009 at 11:19 PM..
goldfish is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote