NickName:Categle Ask DateTime:2012-06-08T07:31:42 Determine if sessions are enabled client-side How can I determine, if client browser supports sessions? I'm working on a anti-flood script - I want to limit the operations on the script to 5 seconds for each operation, and I want to store the unix time using the client sessions, but first I'd have to check if they're enabled. Is that possible to do that? Copyright Notice:Content Author:「Categle」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.Link to original article:https://stackoverflow.com/questions/10941272/determine-if-sessions-are-enabled-client-side Answers Bart Wegrzyn 2012-06-07T23:40:09 I'm assuming you're trying to limit the script from running more than once every 5 seconds per client.\n\nHttp is a stateless protocol, and PHP relies on a cookie value (or parameter value) to initialize the session on the server side. Knowing this, using sessions alone is not enough to stop users from flooding your script more than once every 5 seconds. The user client could simple not send the cookie or session ID parameter in the request, and you would have to treat it like a new session.\n\nYou will have to use other methods of identifying user sessions. Using the requesting IP address is a good start, but may not work very well for you (especially since many users can have the same public facing IP). ",