Re: [PHP] Session variables and words with spaces

2006-05-31 Thread John Nichel
Beauford wrote: Hi, I have a form in which a drop down field is populated from a MySQL database. I am also using sessions. The problem is this. After I submit the form the session variable only shows the part of the input before the space. Example: if I choose Niagra Falls from the drop down

RE: [PHP] Session variables and words with spaces

2006-05-31 Thread Beauford
Thanks - Done that though. It shows the way it should be. Example: option value=Niagara FallsNiagara Falls/option -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED] Sent: May 31, 2006 2:28 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] Session

Re: [PHP] Session variables and words with spaces

2006-05-31 Thread Brad Bonkoski
FallsNiagra Falls/option (View source is a powerful tool!) -Brad -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED] Sent: May 31, 2006 2:28 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] Session variables and words with spaces Perhaps you should load up your

Re: [PHP] Session variables and words with spaces

2006-05-31 Thread cajbecu
be. Example: option value=Niagara FallsNiagara Falls/option -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED] Sent: May 31, 2006 2:28 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] Session variables and words with spaces Perhaps you should load up your

RE: [PHP] Session variables and words with spaces

2006-05-31 Thread Beauford
Not sure why I would get a parse error, but that did correct the problem. I just completely missed the single quote. I never even clue'd in when I looked at the source of the page. Sometimes another pair of eyes does the trick. Maybe it's time for a break. Thanks I'm surprised you're not

RE: [PHP] Session variables and words with spaces

2006-05-31 Thread Beauford
Yep, I see that now. I really need to take a break - been at this way to long. Thanks to all. -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED] Sent: May 31, 2006 3:02 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] Session variables and words

Re: [PHP] Session Not Being Passed?

2006-05-19 Thread Richard Lynch
On Thu, May 18, 2006 9:23 pm, Mark Sargent wrote: ?php setcookie('username', 'Joe', time()+60); Because Microsoft engineers are incapable of reading and following a spec correctly, you will have to supply a path along with that time-out. The best default path to use is / You can have no

Re: [PHP] Session Not Being Passed?

2006-05-19 Thread Scott Hurring
On 5/19/06, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, May 18, 2006 9:23 pm, Mark Sargent wrote: titleMovie 1/title /head body ?php $favMovie=urlencode(Life Of Brian); echo a href='http://localhost/moviesite.php?favMovie=$favMovie'; Errr. localhost is going to end up being

Re: [PHP] Session Not Being Passed?

2006-05-19 Thread php
Scott Hurring wrote: On 5/19/06, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, May 18, 2006 9:23 pm, Mark Sargent wrote: titleMovie 1/title /head body ?php $favMovie=urlencode(Life Of Brian); echo a href='http://localhost/moviesite.php?favMovie=$favMovie'; Errr.

RE: [PHP] Session Not Being Passed?

2006-05-18 Thread Jay Blanchard
[snip] which points to this page, ?php session_start; //Check the user has logged in with a valid password if ($_SESSION['authuser']!=1) { echo Sorry, you're not authorized to access this page; exit(); } ? [/snip] You forgot the parentheses after session_start(); (Assuming that

Re: [PHP] Session Not Being Passed?

2006-05-18 Thread Mark Sargent
Jay Blanchard wrote: [snip] which points to this page, ?php session_start; //Check the user has logged in with a valid password if ($_SESSION['authuser']!=1) { echo Sorry, you're not authorized to access this page; exit(); } ? [/snip] You forgot the parentheses after

RE: [PHP] session cookie and domains

2006-05-04 Thread Jay Blanchard
[snip] That makes is available for all subdomains. Is there a possiblity to make it available for all domains like example: .domainname. [/snip] Are you trying to share a cookie across domain names? If so that cannot be done. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] session cookie and domains

2006-05-04 Thread John Nichel
Merlin wrote: Hi there, I am operating 3 sites where I would like to be able to login cross site. Means with one login have a valid session on all 3 domain. Currently I do set the cookie like this: setcookie($cookiename,$sessid,0,'/','.'.$domain[name],0); That makes is available for all

Re: [PHP] session cookie and domains

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 7:37 am, Merlin wrote: I am operating 3 sites where I would like to be able to login cross site. Means with one login have a valid session on all 3 domain. Currently I do set the cookie like this: setcookie($cookiename,$sessid,0,'/','.'.$domain[name],0); That makes is

Re: [PHP] Session - when they expirate ?

2006-05-01 Thread tedd
At 1:36 PM +0200 5/1/06, Martin Zvarík wrote: Hi, I was looking all over the internet and I don't understand when and how does the PHP session expirate. I suppose that it happens when the user is inactive. On my website I don't use cookies for session and it has standard php.ini

Re: [PHP] Session - when they expirate ?

2006-05-01 Thread afan
I had a similar question few days ago on one other forum and get an answer that session expiration is defined by session.gc_maxlifetime and 1440 is number of secunds. (24 minutes - you were right tedd ;)) -afan At 1:36 PM +0200 5/1/06, Martin Zvarík wrote: Hi, I was looking all over the

Re: [PHP] Session - when they expirate ?

2006-05-01 Thread Jochem Maas
Martin Zvarík wrote: Hi, I was looking all over the internet and I don't understand when and how does the PHP session expirate. I suppose that it happens when the user is inactive. On my website I don't use cookies for session and it has standard php.ini configuration:

Re: [PHP] Session Array Disappears

2006-04-30 Thread Jochem Maas
Richard Lynch wrote: ... Your basic Human Interface principle, which is apparently going to be called Web 2.0 now. :-) lol, that sums it up perfectly. ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] session

2006-04-27 Thread Ford, Mike
On 26 April 2006 15:02, chris smith wrote: Can you explicitly pass the sessionid across: FRAMESET rows=100, 200 FRAME src=blah1.php?session_id=?php echo SID; ? FRAME src=blah2.php?session_id=?php echo SID; ? /FRAMESET ? That technique may or may not be the solution,

RE: [PHP] session

2006-04-27 Thread Sichta, Daniel
Solved !!! THX everybody !! Problem was in php.ini file session section DS -Original Message- From: Ford, Mike [mailto:[EMAIL PROTECTED] Sent: Thursday, April 27, 2006 2:18 PM To: php-general@lists.php.net Subject: RE: [PHP] session On 26 April 2006 15:02, chris smith wrote

Re: [PHP] session

2006-04-26 Thread chris smith
On 4/26/06, Sichta, Daniel [EMAIL PROTECTED] wrote: Hi there !! I have web app which using frames. After session timeout my session is killed. The problem is that session is killed even when I doing requests to the server. I know why (session is chain to the frameset page) but what's the

Re: [PHP] session

2006-04-26 Thread chris smith
On 4/26/06, Sichta, Daniel [EMAIL PROTECTED] wrote: -Original Message- From: chris smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 2:18 PM To: Sichta, Daniel Cc: php-general@lists.php.net Subject: Re: [PHP] session On 4/26/06, Sichta, Daniel [EMAIL PROTECTED] wrote

RE: [PHP] session

2006-04-26 Thread Sichta, Daniel
To: Sichta, Daniel Cc: php-general@lists.php.net Subject: Re: [PHP] session On 4/26/06, Sichta, Daniel [EMAIL PROTECTED] wrote: -Original Message- From: chris smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 2:18 PM To: Sichta, Daniel Cc: php-general@lists.php.net Subject: Re

Re: [PHP] session

2006-04-26 Thread chris smith
On 4/27/06, Sichta, Daniel [EMAIL PROTECTED] wrote: Here is application flow Index.php = login page, I need to start session here. From here (successful login) I'm going to admin.php which is Frameset page with source pages. That's nice.. but doesn't help us. We need to see code. --

RE: [PHP] session

2006-04-26 Thread Sichta, Daniel
, Daniel Cc: php-general@lists.php.net Subject: Re: [PHP] session On 4/27/06, Sichta, Daniel [EMAIL PROTECTED] wrote: Here is application flow Index.php = login page, I need to start session here. From here (successful login) I'm going to admin.php which is Frameset page with source pages. That's

Re: [PHP] session

2006-04-26 Thread chris smith
On 4/27/06, Sichta, Daniel [EMAIL PROTECTED] wrote: Login.php ? // starting session here require_once(include/init.inc); and what's in that file - only the session related stuff. If you pass the sessionid across does it work: frame name=tree src=menu.php?session_id=?php echo SID; ?

Re: [PHP] session

2006-04-26 Thread Richard Lynch
On Wed, April 26, 2006 2:53 am, Sichta, Daniel wrote: I have web app which using frames. After session timeout my session is killed. The problem is that session is killed even when I doing requests to the server. I know why (session is chain to the frameset page) but what's the solution for

Re: [PHP] Session Array Disappears

2006-04-25 Thread Al
Richard Lynch wrote: I'm thinking the guy who suggested ignore_user_abort(TRUE) is just doing Voodoo Programming :-) It may or may not be something you want, but I doubt it will have any affect whatsoever on your posted problem. Actually, I think anywhere that somebody thinks they need

Re: [PHP] Session Array Disappears

2006-04-25 Thread Webmaster
Hello, Thank you for the reply. Richard Lynch wrote: On Mon, April 24, 2006 2:48 pm, Webmaster wrote: In reading the www.php.net/manual/en/ref.session.php page, I'd like to point out we do not use cookies. The session id is propagated in the URL (although it's not visible in the URL

Re: [PHP] Session Array Disappears

2006-04-25 Thread Webmaster
Richard Lynch wrote: I'm thinking the guy who suggested ignore_user_abort(TRUE) is just doing Voodoo Programming :-) I love the term Voodoo Programming! I'm guilty of doing it myself. :-) My 2 cents.I could see times when ignore_user_abort(TRUE) could be very handy. I'm wondering

RE: [PHP] Session Array Disappears

2006-04-24 Thread Brady Mitchell
You're missing the session_start() call at the beginning of your code. I'm surprised it works at all without that.. http://www.php.net/manual/en/ref.session.php http://www.php.net/manual/en/function.session-start.php Brady -Original Message- From: Webmaster [mailto:[EMAIL PROTECTED]

Re: [PHP] Session Array Disappears

2006-04-24 Thread Webmaster
Thanks for the reply. Sorry, that was a typo in the email. I actually do have session_start(); at the beginning of the scripts. My bad. Thanks, R Brady Mitchell wrote: You're missing the session_start() call at the beginning of your code. I'm surprised it works at all without that..

Re: [PHP] Session Array Disappears

2006-04-24 Thread Al
add a ignore_user_abort(TRUE) first thing in your code. Webmaster wrote: Thanks for the reply. Sorry, that was a typo in the email. I actually do have session_start(); at the beginning of the scripts. My bad. Thanks, R Brady Mitchell wrote: You're missing the session_start() call at the

Re: [PHP] Session Array Disappears

2006-04-24 Thread Webmaster
Hello, Thank you for the reply. Interesting function. I have not heard of that one previously. I've read the manual pages for it.If I understand ignore_user_abort(TRUE)...you are thinking that maybe the user is being disconnected (using stop button or having ISP issues) prior to the

Re: [PHP] Session Array Disappears

2006-04-24 Thread Richard Lynch
On Mon, April 24, 2006 2:48 pm, Webmaster wrote: In reading the www.php.net/manual/en/ref.session.php page, I'd like to point out we do not use cookies. The session id is propagated in the URL (although it's not visible in the URL bar). Something is very odd here... Unless the session data

Re: [PHP] Session Array Disappears

2006-04-24 Thread Richard Lynch
I'm thinking the guy who suggested ignore_user_abort(TRUE) is just doing Voodoo Programming :-) It may or may not be something you want, but I doubt it will have any affect whatsoever on your posted problem. Actually, I think anywhere that somebody thinks they need ignore_user_abort, they

Re: [PHP] Session contamination?

2006-04-21 Thread Ben Liu
Yes, Chuck is correct here. The security issue I raised has to do with multiple users on the same shared server, which is how some hosting companies manage their clients. Each user may have a different home directory and has separation from other users, however, usually the same /tmp

Re: [PHP] Session contamination?

2006-04-21 Thread Ben Liu
Ach, correction: Chuck is correct here. = *Richard* is correct here. No morning coffee yet, sorry. - Ben On Apr 20, 2006, at 7:22 PM, Richard Lynch wrote: On Thu, April 20, 2006 1:46 pm, Ben Liu wrote: After a bit more research, I think I understand why Jochem recommends use of

Re: [PHP] Session contamination?

2006-04-21 Thread Richard Lynch
On Fri, April 21, 2006 6:28 am, Ben Liu wrote: Yes, Chuck is correct here. The security issue I raised has to do with multiple users on the same shared server, which is how some hosting companies manage their clients. Each user may have a different home directory and has separation from other

Re: [PHP] session

2006-04-20 Thread cajbecu
Hello, Try generating your own session id and the problem will be solved ;) cheers, João Cândido de Souza Neto wrote: Hi everyone. I hope someone here can help me. When i start a session in a php page, this session receives an unique id. If you think about this, if i call a

RE: [PHP] session

2006-04-20 Thread Ing. Edwin Cruz
://www.medel.com.mx| ++ -Mensaje original- De: cajbecu [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 20 de Abril de 2006 09:03 a.m. Para: João Cândido de Souza Neto CC: php-general@lists.php.net Asunto: Re: [PHP] session Hello, Try

Re: [PHP] session

2006-04-20 Thread Martin Alterisio \El Hombre Gris\
It's really that hard to read the whole manual page about session_destroy()? Quoting the php manual: In order to kill the session altogether, like to log the user out, the session id must also be unset. If a cookie is used to propagate the session id (default behavior), then the session cookie

Re: [PHP] Session contamination?

2006-04-20 Thread Robin Vickery
On 20/04/06, Ben Liu [EMAIL PROTECTED] wrote: Hello All, I'm using a single development server to host multiple client projects, many of which require session management. I've noticed that sometimes when I test these various web apps (which are simply in separate sub directories) I get

Re: [PHP] Session contamination?

2006-04-20 Thread Ben Liu
Thanks for the response Robin, I'm reading up on session.cookie_path now. It seems that this would require creating separate php.ini files for each application. On 4/20/06, Robin Vickery [EMAIL PROTECTED] wrote: On 20/04/06, Ben Liu [EMAIL PROTECTED] wrote: Hello All, I'm using a single

Re: [PHP] Session contamination?

2006-04-20 Thread Ben Liu
Hi Dave, Thanks, I think the method recommended by Robin using the function ini_set() would work, but somehow I think this could be done in simpler fashion by setting separate session names for each app, unless I am misunderstanding the use of session_name(). Trying this out now... - Ben On

Re: [PHP] Session contamination?

2006-04-20 Thread Jochem Maas
Ben Liu wrote: Hi Dave, Thanks, I think the method recommended by Robin using the function ini_set() would work, but somehow I think this could be done in simpler fashion by setting separate session names for each app, unless I am misunderstanding the use of session_name(). Trying this out

Re: [PHP] Session contamination?

2006-04-20 Thread Ben Liu
Thanks Jochem, this should give me all I need to solve this problem. -Ben On 4/20/06, Jochem Maas [EMAIL PROTECTED] wrote: Ben Liu wrote: Hi Dave, Thanks, I think the method recommended by Robin using the function ini_set() would work, but somehow I think this could be done in simpler

Re: [PHP] Session contamination?

2006-04-20 Thread Ben Liu
Hi Dave, After a bit more research, I think I understand why Jochem recommends use of session_save_path() rather than just naming each session differently. The former method provides more security as you can set the location where session cookies are stored. This will help prevent an attacker

Re: [PHP] Session contamination?

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 10:21 am, Ben Liu wrote: I'm using a single development server to host multiple client projects, many of which require session management. I've noticed that sometimes when I test these various web apps (which are simply in separate sub directories) I get session leakage

Re: [PHP] Session contamination?

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 1:46 pm, Ben Liu wrote: After a bit more research, I think I understand why Jochem recommends use of session_save_path() rather than just naming each session differently. The former method provides more security as you can set the location where session cookies are

Re: [PHP] session vars

2006-03-21 Thread tedd
Hipeople. I've a system where i use session and all is working fine. But has something that don't work and i can't to find the cause. When a use the include function, the file included don't see the session vars. Anyone knows why it's happen? Thanks. --

Re: [PHP] session vars

2006-03-21 Thread Warren Vail
Sessions only have access to Global Vars. http://us3.php.net/manual/en/ref.session.php I understand it's because the local vars inside a function are free'd when you exit the function, and the actual post to the session record occurs during script wrappup operations, long after exiting the

RE: [PHP] Session from php in ASP

2006-03-17 Thread Jay Blanchard
[snip] is it possible to get a Sessionvariable set in php read in an asp-file with the tag %= Session(php) %? [/snip] Have you tried it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session from php in ASP

2006-03-17 Thread Stefan
Yes. I don't get any values Jay Blanchard [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] [snip] is it possible to get a Sessionvariable set in php read in an asp-file with the tag %= Session(php) %? [/snip] Have you tried it? -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Session from php in ASP

2006-03-17 Thread Jay Blanchard
[snip] Yes. I don't get any values [/snip] Then it is not possible using that method. Have you tried writing session info to a file and then reading it from ASP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session from php in ASP

2006-03-17 Thread Myk OLeary
PHP and ASP both have built in session handling. The only problem is, they instantiate the sessions themselves. Therefore, whenever you hit a page in ASP you'll start one session, but if you immediately hit a PHP page on the same server in the same browser from the same machine, you

Re: [PHP] session register()

2006-03-11 Thread Satyam
- Original Message - From: suresh kumar [EMAIL PROTECTED] To: php php-general@lists.php.net Sent: Saturday, March 11, 2006 4:51 PM Subject: [PHP] session register() i am facing two problems in my project. 1) whether i can store variable as session variable inside javascript

Re: [PHP] session handling

2006-03-09 Thread tedd
i am having one problem in session handling. I am having 2 files,login page and hame page. when user enterd user name and password in login page .i used session to store the user id .in my second home page.i retrieve the user id.now i want the user id to be availble in my thrid page.plz help

Re: [PHP] session handling

2006-03-09 Thread Gerry Danen
$ID is not a global, but $_SESSION[ID] would be... Gerry http://groups.yahoo.com/group/php_and_mysql/ On 3/9/06, suresh kumar [EMAIL PROTECTED] wrote: i am having one problem in session handling. I am having 2 files,login page and hame page. when user enterd user name and password in login

RE: [PHP] Session problems [SOLVED]

2006-02-22 Thread Dan Parry
Hi all I didn't get that many replies (thanks to those who did reply :) ) for this, so now I've figured out the problem I thought I'd share the solution just in case anyone else has the same issue: solution The problem stemmed from the way the return from UPDATE is handled and the scripts

RE: [PHP] Session problems

2006-02-16 Thread Peter Lauri
What is the code that generates this? -Original Message- From: Dan Parry[EMAIL PROTECTED] Sent: 16/02/06 4:50:51 PM To: php-general@lists.php.netphp-general@lists.php.net Subject: [PHP] Session problems Hi all I've been getting an error while

RE: [PHP] Session problems

2006-02-16 Thread Dan Parry
: [PHP] Session problems What is the code that generates this? -Original Message- From: Dan Parry[EMAIL PROTECTED] Sent: 16/02/06 4:50:51 PM To: php-general@lists.php.netphp-general@lists.php.net Subject: [PHP] Session problems Hi all I've been

Re: [PHP] Session problems

2006-02-16 Thread Curt Zirzow
On Thu, Feb 16, 2006 at 12:37:14PM -, Dan Parry wrote: Here is the complete code from the class... it's just a modified version of that available from an article on the Zend site ? $ses_class = new session(); ini_set(session.save_handler, user); You dont need to do this.

Re: [PHP] Session problems

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 3:50 am, Dan Parry wrote: I've been getting an error while using a custom session handler utilising a MySQL database The error I receive is: Duplicate entry 'PHPSESSID_REMOVED' for key 1 Looks like your Session ID that you are trying to insert into the database in

RE: [PHP] Session problems

2006-02-16 Thread Chrome
Cc: php-general@lists.php.net Subject: Re: [PHP] Session problems On Thu, February 16, 2006 3:50 am, Dan Parry wrote: I've been getting an error while using a custom session handler utilising a MySQL database The error I receive is: Duplicate entry 'PHPSESSID_REMOVED' for key 1 Looks like

[PHP] Re: PHP Session

2006-02-13 Thread Jochem Maas
he Kurt, Given the question you ask is very much a beginners question I assume that you are not working for LCMG as a programmer? nothing wrong with that, per se ... BUT working for a large IT company you are expected to realise that the whole internet community is not just there to answer you

Re: [PHP] session loss

2006-01-31 Thread Richard Correia
Which php version and platform? Thanks Rich On 2/1/06, Dave Goodchild [EMAIL PROTECTED] wrote: Hi all - does anyone know why, in certain cases, session variables are lost from the $_SESSION superglobal array? I am writing a session-driven app and for some reason the testing crew lose a

Re: [PHP] session loss

2006-01-31 Thread Ray Hauge
This behavior could happen if your team is using load-balancing on multiple T-1s instead of a bonded connection. That would cause them to use different IPs/connections, and would normally close the session. That's a remote possibility, but that actually happened to me on one of our projects.

Re: [PHP] SESSION expiry time setting

2005-11-18 Thread David Grant
Hi Angelo, You might want: session.cookie_lifetime = time in seconds Obviously this only has an effect if the session.use_cookies directive is set to 1. Cheers, David Grant Angelo Zanetti wrote: Hi guys. I've been searching for where the time is set for a session to expire but had

Re: [PHP] SESSION expiry time setting

2005-11-18 Thread Chris Shiflett
Angelo Zanetti wrote: I've been searching for where the time is set for a session to expire but had little luck. I think you might be looking for the session.gc_* directives. These control the session mechanism's garbage collection. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The

[PHP] Re: php session in ie

2005-11-12 Thread James Benson
sunaram patir wrote: Hi, i am having problem with internet explorer. i am working on a project on building a website where i need to keep track of the users i.e. i use a login system in there in short. with the following code i check whether the user is logged in or not. ?php session_start();

Re: [PHP] Re: php session in ie

2005-11-12 Thread sunaram patir
On 11/12/05, James Benson [EMAIL PROTECTED] wrote: sunaram patir wrote: Hi, i am having problem with internet explorer. i am working on $_SESSION['myurl']=$_SERVER['PHP_SELF']; if(!isset($_SESSION['student_username']) !isset($_SESSION['student_password'])) header(Location:

[PHP] Re: php session variables limited to 1 character -- please help

2005-10-27 Thread Oliver Grätz
Zac Smith schrieb: http://www.triptrivia.com/step2-debug.php?State=abc 404 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session save path

2005-10-10 Thread Richard Lynch
On Mon, October 3, 2005 9:15 am, jonathan wrote: I'm looking for where apache / php will be saving the user session files. when I do a phpinfo(), it tells me that session.save_path will be temp but when I look at the files in there, there are only a couple of files and they say nwIN; Is

Re: [PHP] session

2005-09-20 Thread Thorsten Suckow-Homberg
and when i click on link always I have in $count value 1 but I need value 2,3, how to do it ? ?php session_start(); if (! isset($_SESSION['count'])) { $_SESSION['count'] = 0; } $_SESSION['count']++; //session_destroy(); - don't do that! It destroys the //session associated with the

Re: [PHP] session 2

2005-09-20 Thread John Nichel
Roman Duriancik wrote: Tanks all for help about session I have other question. In php.ini I set folder for sessions file on c:\tmp but what are happens when disk is full, how to automatically delete nonactive sessions files ? PHP will handle this automatically based on the

RE: [PHP] Session creation time

2005-09-19 Thread Stanislav Kuhn
session_start(); if (empty($_SESSION['start_time']) $_SESSION['start_time']=time(); echo $_SESSION['start_time']; -Original Message- From: Eli [mailto:[EMAIL PROTECTED] Sent: 19 September 2005 13:21 To: php-general@lists.php.net Subject: [PHP] Session creation time How can I get

Re: [PHP] Session expires randomly

2005-09-08 Thread Mauricio Pellegrini
On Tue, 2005-09-06 at 19:43, Philip Hallstrom wrote: On Tue, 6 Sep 2005, Mauricio Pellegrini wrote: You were right! That was exactly the problem after reading your message, I 've verified the value for gc_maxlifetime and found that it was set to 1440 secs in other words 24 minutes.

Re: [PHP] Session expires randomly

2005-09-08 Thread Kirk . Johnson
So I was thinking on implementing some sort of automatic session refresh after a short period, let's say every 20 minutes of inactivity. And of course I should provide the users with a manual way to make session end, sort of a logout from the application.( no problem with that)

Re: [PHP] Session object destruction failed

2005-09-07 Thread Gustav Wiberg
Hi there! How does your code look like? /G http://www.varupiraten.se/ - Original Message - From: Dan Rossi [EMAIL PROTECTED] To: PHP LIST php-general@lists.php.net Sent: Wednesday, September 07, 2005 12:55 PM Subject: [PHP] Session object destruction failed Hi there, I am using a

Re: [PHP] Session expires randomly

2005-09-06 Thread Mauricio Pellegrini
You were right! That was exactly the problem after reading your message, I 've verified the value for gc_maxlifetime and found that it was set to 1440 secs in other words 24 minutes. Thank you for that. But, now I need to come up with something to avoid this behaviour. The problem is that

Re: [PHP] Session expires randomly

2005-09-06 Thread Philip Hallstrom
On Tue, 6 Sep 2005, Mauricio Pellegrini wrote: You were right! That was exactly the problem after reading your message, I 've verified the value for gc_maxlifetime and found that it was set to 1440 secs in other words 24 minutes. Thank you for that. But, now I need to come up with something

Re: [PHP] session cookies

2005-09-02 Thread Chris Shiflett
Rasmus Lerdorf wrote: That's a bit misleading. The HTTP response headers are sent a soon as you output something from your script (calling header() or setcookie() doesn't count as output, so you can set all the headers and cookies you want). They're sent to Apache, but that doesn't mean

Re: [PHP] Session expires randomly

2005-09-02 Thread Philip Hallstrom
On Fri, 2 Sep 2005, Mauricio Pellegrini wrote: Hi, I have this problem , When I start a Session everything seems to be ok but sometimes with no reason the session vanishes. I'm using PHP 4.3.4 as a Apache module. Apache version is 1.3 under Suse Linux 8.2 All settings are default , I mean

Re: [PHP] session cookies

2005-09-02 Thread Philip Hallstrom
Rasmus Lerdorf wrote: That's a bit misleading. The HTTP response headers are sent a soon as you output something from your script (calling header() or setcookie() doesn't count as output, so you can set all the headers and cookies you want). They're sent to Apache, but that doesn't mean

Re: [PHP] Session expires randomly

2005-09-02 Thread Kirk . Johnson
On Fri, 2 Sep 2005, Mauricio Pellegrini wrote: Hi, I have this problem , When I start a Session everything seems to be ok but sometimes with no reason the session vanishes. All settings are default , I mean session_cache_expire is 180 min. I understand that this setting should make

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Chris Shiflett wrote: Rasmus Lerdorf wrote: That's a bit misleading. The HTTP response headers are sent a soon as you output something from your script (calling header() or setcookie() doesn't count as output, so you can set all the headers and cookies you want). They're sent to

Re: [PHP] session cookies

2005-09-02 Thread Chris Shiflett
Chris Shiflett wrote: And the browsers tend to redirect right away once they get this header. I would find that very surprising. Maybe I'll experiment. I tested this with Firefox 1.0.4, Firefox 1.0.6, and Safari 1.3. None of them request the new URL before receiving the previous response

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Chris Shiflett wrote: Chris Shiflett wrote: And the browsers tend to redirect right away once they get this header. I would find that very surprising. Maybe I'll experiment. I tested this with Firefox 1.0.4, Firefox 1.0.6, and Safari 1.3. None of them request the new URL before

Re: [PHP] session cookies

2005-09-02 Thread Chris Shiflett
Rasmus Lerdorf wrote: Then you have configured your server to always turn on output buffering or your test script is bad. I don't think it's either, but I'll let you decide. I tried a new test with your code and some slight modifications: ?php header('Location: http://www.php.net/'); $fp =

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Chris Shiflett wrote: Rasmus Lerdorf wrote: Then you have configured your server to always turn on output buffering or your test script is bad. I don't think it's either, but I'll let you decide. I tried a new test with your code and some slight modifications: Why modify my test? What

Re: [PHP] session cookies

2005-09-02 Thread Chris Shiflett
Rasmus Lerdorf wrote: Why modify my test? Because it has less delay. Thus, it's more difficult to tell if the browser is requesting the new URL before or after receiving the entire response. My script is essentially the same thing, but the script takes 30 seconds to execute. It makes the

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Chris Shiflett wrote: Rasmus Lerdorf wrote: Why modify my test? Because it has less delay. Thus, it's more difficult to tell if the browser is requesting the new URL before or after receiving the entire response. My script is essentially the same thing, but the script takes 30 seconds

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Rasmus Lerdorf wrote: Chris Shiflett wrote: Rasmus Lerdorf wrote: Why modify my test? Because it has less delay. Thus, it's more difficult to tell if the browser is requesting the new URL before or after receiving the entire response. My script is essentially the same thing, but the script

Re: [PHP] session cookies

2005-09-01 Thread Philip Hallstrom
Is there a way, using PHP, to determine if session cookies are enabled (or disabled) in the user's browser privacy settings? Set a cookie using setcookie(). Then use an HTML meta refresh (or javascript, just not Header(Location...) to redirect them to another page. On that page, see if the

Re: [PHP] session cookies

2005-09-01 Thread Mikey
Jasper Bryant-Greene wrote: Philip Hallstrom wrote: Then use an HTML meta refresh (or javascript, just not Header(Location...) to redirect them to another page. Why not header(Location...)? Just out of interest -- it's always worked for me, and it's a much better way to redirect users for

Re: [PHP] session cookies

2005-09-01 Thread Philip Hallstrom
Philip Hallstrom wrote: Then use an HTML meta refresh (or javascript, just not Header(Location...) to redirect them to another page. Why not header(Location...)? Just out of interest -- it's always worked for me, and it's a much better way to redirect users for many reasons[1] (like not

Re: [PHP] session cookies

2005-09-01 Thread Jasper Bryant-Greene
Philip Hallstrom wrote: Then use an HTML meta refresh (or javascript, just not Header(Location...) to redirect them to another page. Why not header(Location...)? Just out of interest -- it's always worked for me, and it's a much better way to redirect users for many reasons[1] (like not

Re: [PHP] session cookies

2005-09-01 Thread Jasper Bryant-Greene
Mikey wrote: Jasper Bryant-Greene wrote: Philip Hallstrom wrote: Then use an HTML meta refresh (or javascript, just not Header(Location...) to redirect them to another page. Why not header(Location...)? Just out of interest -- it's always worked for me, and it's a much better way to

Re: [PHP] session cookies

2005-09-01 Thread Gustav Wiberg
@lists.php.net Sent: Thursday, September 01, 2005 10:43 PM Subject: Re: [PHP] session cookies Philip Hallstrom wrote: Then use an HTML meta refresh (or javascript, just not Header(Location...) to redirect them to another page. Why not header(Location...)? Just out of interest -- it's always worked

<    1   2   3   4   5   6   7   8   9   10   >