Jump to content

Sessions?


aximbigfan

Recommended Posts

I am using sessions to hold passwords. One thing I am tring to figure out, is if sessions cover other computers too. How exactly do sessions work?

 

Say I set $_SESSION['test'] when I access a page on computer A

Can I recall that var from computer B ?

 

EDIT: ok, so at least according to docs, that isn't meant to happen, good. Are the session vars accessible to all the scripts run by the the user who created the session?

 

Thanks

Chris

Link to comment
Share on other sites

The session data is simply data stored on the web server that is returned to PHP depending on the session ID stored in a cookie on the client's computer.  If you give that session ID to another user/browser/computer, it will have the same session data as the first one.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.