|
Author
|
Topic: PHP 4 Sessions: no cookies??
|
terium Member
|
posted July 16, 2000 10:45 AM
I always understood that PHP 4 sessions used cookies, so I had decided not to use it (I have a broad range of users). I was just reading through an article, however, and it seemed like they don't use cookies but rather temporary files in the server. Is it true? If they don't use cookies, my life will be much easier..  |
rod k Member
|
posted July 16, 2000 10:53 AM
The temp files are where the data is stored. The cookie is used to maintain state. However, you can turn off cookies in php.ini and pass the session id via the url. |
terium Member
|
posted July 16, 2000 11:02 AM
OK, I can't change the php.ini file, so can I pass the session ID in the URL regardless (that way it'll work either way, I think--with cookies or not)? In other words, I just write the scripts without worrying about the cookies, since I'll have the session ID in the URL anyway... Thanks |