Re: Where does php session cookies stored



mosesdinakaran@xxxxxxxxx wrote:
Hi Ron

Thanks for ur reply.. I have some more questions please....

I tried with what u said but I could not find the cookie
file I am sure that the session handler is set to handle cookies
because I dont have any problem with accessing cookie variable and
session variable every thing works fine But I am curious about seeing
the cookie file what my program has created. Meanwhile if I open
yahoo.com I could see the cookie file created by the yahoo.

So I uploaded my test file to another server and checked and
now I could see the cookie file.

I have learned that by default cookies are not created its
either created by javascript or server side scripting. In php,
session_start() and setcookie() will create a cookie

Now I removed these two function in my file and I had only html
code But still cookies are created I am very much confused.....

My Questions are.

1) when I run my script in server (A) cookie file is not created
where as when I run the same script in server (B) cookie file is
created why?????


If this is a PHP script, perhaps session.auto_start is set in the php.ini file? Or maybe something else is setting the cookie automatically.

2) Does a html page creates a cookie.


No.

3) Can a value stored in a cookie be edited. (ie I am storing a
variable called access level in the cookie based upon the access level
i will give permission to the user, Since cookies are stored in the
client machine can the user open the cookie file and edit the access
level )

Yes, it's a file on the user's computer, after all. They may not get it right - but it can be edited. Keep this information in the session, not the cookie. Session files are kept on the server.

regards
moses



--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: web replication
    ... Session cookies relate to memory in the server, ... cookie, then yes it's a problem if one cannot be certain of which box ... , i'm actually studying the lvs documentation, ipvs via nat use nat to ...
    (comp.os.linux.networking)
  • Re: tracking logins
    ... You might wonder how after the login is complete that the server can ... By TCP/IP session. ... The server sends a cookie at login time, ...
    (comp.lang.java.programmer)
  • Re: $_SESSION problem - page reload creates new Session ID
    ... > set on a page just viewed because there is a new session created ... As fas as the server is concerned all requests are independant. ... cookie back to the server. ...
    (comp.lang.php)
  • Re: error code 0x80072EFD
    ... [CallerId = AutomaticUpdates] ... cookie, reporting URL = ... the server with hr = 80072efd. ...
    (microsoft.public.windowsupdate)
  • Re: Asp| Cookies vs Session Variables
    ... An in-memory cookie is stored in the client's memory. ... Session variables themselves aren't a particular burden on a server. ...
    (microsoft.public.inetserver.iis)