Jump to content

Recommended Posts

with my browser cookie disabled, i browse some site, when i'm not login to the user account, then it's ok and no problem. when i want to login, it will ask me to enable my browser's cookie, it's clear that it need the cookie for the session...

 

so, i just want to know, before i'm login, the site still can run without session created(no cookie enabled at that time), how they pass/store their temporary data?

 

in another word, how can i pass data without session?

Link to comment
https://forums.phpfreaks.com/topic/176065-solved-no-session-before-login/
Share on other sites

Data can remain persistent throughout HTTP via GET & POST i.e. Url Parameters, hidden form fields.

Access to a secure area of a website will require a session to maintain your login. Some use cookies to maintain a persistent login (you return after your session is lost). You would never pass customer sensitive data through GET or POST requests.

Touching on whats been covered so far. Sessions are essentially a cookie that is stored on the server as opposed to the client PC. In order to associate that client PC with the correct cookie, sites use a SESSION_ID. By default SESSION_ID's are stored on the client PC as a cookie. That's not the only way of doing it (just the simplest), it's possible to persist the SESSION_ID using a GET or POST variable.

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.