Uploader Comments (phpacademy)
Top Comments
-
I love your tutorials. and there very helpfull.
Hope you bring us manny more tutorials.
Good luck to you.
All Comments (19)
-
Replace ereg function with: strstr($file, "sess")
-
Hello!
THX for all tut, I've learnd lots of You, but now I'm getting an error. It says Deprecated: Function ereg() is deprecated. I really don't understand. Can anybody help me????
-
Baabai?
What the feck was that about? XD
Anyway, I tried this tut, did EVERYTHING you told me to, and the error I'm getting is a loop of ereg is deprecated. What can I do to solve this issue?
-
you rock alex! i wish you become a millionaire.
-
@phpacademy Yup, Alex, I just checked my TMP folder and there are 38 session files online. It says the same on my PHP script.
-
496 people on my site... i don't think so...
-
Dosn't work to well when u have 12,000 past five mins.....Causes my server load to jump.
-
I get:
Warning: readdir(): supplied argument is not a valid Directory resource
For the while-loop.. Any way to fix this?
-
I think you need this: ini_set("session.cookie_lifeti
me", 0); Put it before session_start()! With this line, the user's session will be deleted when the browser closes.
-
you'll have to use PHP to store sessions, and to echo them out into a variable.
thankfully, you can incorporate PHP w/HTML
Nice tutorial. It's working for me in the sense that it's counting the amount of sessions, but my folder is not deleting sessions when browser is closed. Any ideas? thanks.
cullly 2 years ago
At all? It should do, sometimes takes a while. Although I know how to write this code, I'm not sure of the workings behind it so maybe someone else would be able to help, try the forums if not!
phpacademy 2 years ago
you rock rock rock! thanks again!
uncoverbrother 2 years ago 4
You're totally welcome!
phpacademy 2 years ago