Re: [PHP] Sessions and cookies

2005-02-22 Thread Chris Shiflett
> When a session object is created - where is it store? Assuming you mean session data, it is stored on the server, in /tmp by default. > To destroy the session object (widht all session vairables inside the > particluar session object) can I use session_destroy(); http://www.php.net/session_des

Re: [PHP] Sessions and cookies

2005-02-22 Thread Jochem Maas
Brett Patterson wrote: Well, if you look in your phpinfo() file, you will see a SESSION_TIMEOUT or SESSION_LENGTH value that is something like 18... different for each server. If you hold all your session values in the array, then you can use session_destory(); as long as session_start() is pre

RE: [PHP] Sessions and cookies

2005-02-21 Thread Brett Patterson
Well, if you look in your phpinfo() file, you will see a SESSION_TIMEOUT or SESSION_LENGTH value that is something like 18... different for each server. If you hold all your session values in the array, then you can use session_destory(); as long as session_start() is previous to that. I am u

Re: [PHP] Sessions and Cookies

2003-02-05 Thread 1LT John W. Holmes
> I'm trying to use cookies in PHP4 (.whatever the latest release is). I want > to use them for validation (ensuring a user has logged in) but all I can find > is setcookie, which seems only to create the cookie. In trying to use PHP > sessions, I end up with odd errors. > > When I try to use ses

Re: [PHP] Sessions and Cookies

2003-02-04 Thread Dmitri
Well, that is natural - cookies can only be set before any output is produced by the script. And since sessions in this case use cookies, it follows that sessions can also be started before any output is produced. Why is that? Because cookies are transmitted by means of http headers, and http heade

Re: [PHP] Sessions and Cookies

2003-02-04 Thread Leif K-Brooks
acleave wrote: My Questions: If I create a cookie with set_cookie how do I read it/check it? $_COOKIE superglobal array. How do I use sessions if they can't be sent in the code? The session_start function has to be at the VERY top of the of the code, below ANY output (even blank spaces

Re: [PHP] Sessions and Cookies

2002-10-08 Thread 1LT John W. Holmes
> On Tuesday 08 October 2002 23:34, R. Z. wrote: > > I've just read on MSDN that ASP sessions only work if the client has > > cookies enabled, > > > > Is that true for PHP as well. > > Yes. > > Note that some browsers actually differentiate between session cookies (stored > in memory) and 'permane

Re: [PHP] Sessions and Cookies

2002-10-08 Thread Jason Wong
On Tuesday 08 October 2002 23:34, R. Z. wrote: > I've just read on MSDN that ASP sessions only work if the client has > cookies enabled, > > Is that true for PHP as well. Yes. Note that some browsers actually differentiate between session cookies (stored in memory) and 'permanent' cookies (stor

RE: [PHP] Sessions and Cookies

2002-10-08 Thread Jon Haworth
Hi, > I've just read on MSDN that ASP sessions only work if > the client has cookies enabled, Is that true for PHP as well. No, not if you have "session.use_trans_sid = 1" in your php.ini. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] Sessions and Cookies

2002-10-08 Thread @ Edwin
No. http://www.php.net/manual/en/ref.session.php - E R. Z. wrote: > I've just read on MSDN that ASP sessions only work if the client has > cookies enabled, > > Is that true for PHP as well. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/

Re: [PHP] Sessions and Cookies on Macs

2001-08-28 Thread Richard Baskett
I just used the url to pass it since no matter what I did I couldnĀ¹t seem to get it to work when cookies were turned off on my mac. I've read the session url on the php site from top to bottom and the transparent sessions are even enabled on the server, but yet to no avail on the mac :( > on 8/2

Re: [PHP] Sessions and Cookies on Macs

2001-08-28 Thread mike cullerton
on 8/27/01 10:31 AM, Richard Baskett at [EMAIL PROTECTED] wrote: > Ok on a pc when I have cookies turned off I am still able to access my > session variables, but on a mac I can not. Is there a difference between > the way session variables are stored on each platform? And if a session is > ind

Re: [PHP] sessions and cookies

2001-03-31 Thread \[Inf\] F!RE-WALL
I don't recommend putting the Session ID in the URL. Subscibed members could pass URL's to eachother and that way they could have eachother's settings. ""David Hynes"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am using sessions to password protect a sec