Hello,
I really think the using the session thingy to sort of track the user is pretty cool so what I need to know is how to use session ...
Thanks![]()
Hello,
I really think the using the session thingy to sort of track the user is pretty cool so what I need to know is how to use session ...
Thanks![]()
Take a look at the tutorials on PHP.net
These have all of the functions that you need to know to use sessions.
Hope this helps.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
Thanks thetestingsite - i will be reading the page for some time![]()
Ok I have completely lost it ! - i can not understand... can anyone here please give me begginer to advanced explanation here ?
Thanks![]()
Basically, you can use $_SESSION just like any other array, so long as you session_start() on each page before sending any data.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Please remember i am a stupid begginer and need more than that![]()
That was the short answer. The long answer is the link that thetestingsite posted![]()
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Starts the session.PHP Code:session_start();
Closes the sessionPHP Code:session_destroy();
Writes "value" into "name"PHP Code:$_SESSION['name'] = 'value';
Retrieves the value of "name"PHP Code:$data = $_SESSION['name'];
Changes the session IDPHP Code:session_regenerate_id();
Gets the session IDPHP Code:session_id();
Deletes the value of 'name'PHP Code:unset($_SESSION['name']);
Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
Currently: enjoying the early holidays :)Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide
Thanks for your posts, may i have an example ?
Pleeeeeeeease![]()
Bookmarks