Need help with sessions...
I've done many things in PHP, but never used sessions (mostly just a single cookie)...
Now I need more than that and got into sessions.
I've read many tutorial and they are all nice and everything but in none of them i couldn't find how to restore a session.
I tried something like this:
<i>
session_start();
session_register('count');
$count++;
echo "You've been here $count times.";
</i>
But when I close the browser, reload it in another one, the whole thing starts to run with a new session.
The old one is still there, but i don't know how to resume it. There is no PHPSESSID cookie set in the cookies dir (I enabled the lowest security level of the browser).
So I tried to pass the session id with GET/POST and now I simple don't know how to resume the old session.
I know, this is propably a lame question/problem but I couldn't find any tutorial that would explain the whole stuff.
They are all written in the same was - and this session "resuming" is only mentioned as if it was something narural 😉
Ok, maybe I'm stupid, but if somebody would tell me how to do this, all my problems would be solved 😉)
So I need a way to resume the old session (from a cookie and from the GET/POST argument).
Thanks in advance!
greetings edmund