Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

PHP Tutorials: Sessions

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
45,309
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 21, 2009

Simelar to cookies, sessions store data, but data is destroyed when the connection is lost (i.e. browser is closed). I show you how to create, show, and unset sessions.

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (phpacademy)

  • Damn thanks a lot. Everytime i looked at one of your videos, i quickly understood.

    Better than all crapy books out there.

    You MUST win an award, thanks for your work.

    +1 the last comment.

  • You're welcome! I'm so glad my tutorials have helped you!

  • if someone logs out with a session destroy function will it log other people out as well? It will clear all the sessions right?

  • No, it works uniquely to each user (connection). They have a unique ID and only that is terminated.

see all

All Comments (65)

Sign In or Sign Up now to post a comment!
  • its amazing how much you know about php alex

  • how to logout a particular user

  • @skatee41 You can't. If you want to set the time until expiration, you must use a cookie. The session expires when you disconnect from the respective page.

  • thanks for the vids

  • good vedio thank you

  • awesome...

  • Hi! first i wanna say, your tutorials is BEST!!

    and i woundred: "How do i set how long a SESSION would be ?" like 1 hour 2 hours.

    Please help :)

  • where are sessions stored? i mean if you don't close the browser.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more