@quark76authorJun 17.2010 — #Thanks Dex. Does anyone know of a way of doing this without starting a session? I'd like to only start a session if the users are logged in, this will cut down on lurkers starting sessions (I don't know if this will affect performance or not).
If I use $_SERVER['HTTP_REFERER'], and the loggin fails, say they slip a wrong keystroke, then it is lost without it being set as a session variable.
@MindzaiJun 17.2010 — #You will need to use sessions or a cookie (sessions is better). Don't worry about the overhead, it is minimal to the point of insignificance. You only need to start the session when the user visits the restricted page, and you will presumably be starting one when they log in anyway.
@quark76authorJun 17.2010 — #You will need to use sessions or a cookie (sessions is better). Don't worry about the overhead, it is minimal to the point of insignificance. You only need to start the session when the user visits the restricted page, and you will presumably be starting one when they log in anyway.[/QUOTE]