Re: [PHP] session_start(), memcache taking too much resources

2011-11-07 Thread Stuart Dallas
On 3 Nov 2011, at 20:22, Ing. Branislav Geržo wrote: > I am running high loaded website and I did some profiling, because > webservers got high load. PHP Version 5.3.8, running FreeBSD 8.2-STABLE, > on lighttpd 1.4.29, running php-fpm on 3 servers > > xdebug is showing, that calling line "session

Re: [PHP] session_start() may take 5 seconds :(

2011-03-30 Thread Tolas Anon
On Thu, Mar 31, 2011 at 8:10 AM, Negin Nickparsa wrote: > session1.php: > session_start(); > $_SESSION['s1']='sth'; > header("location: session2.php?".SID); > ?> > session2.php: > session_start(); > if(isset($_SESSION['s1'])) > echo $_SESSION['s1']; > else > die("No session!"); > ?> > > ok, tha

Re: [PHP] session_start() may take 5 seconds :(

2011-03-30 Thread Negin Nickparsa
session1.php: session2.php:

Re: [PHP] session_start problems with FireFox on Mac

2008-01-14 Thread tedd
At 3:50 PM +0100 1/13/08, Jochem Maas wrote: to avoid this in future never add the closing php bracket to the end of the php file (unless you explicitly want to output something after the code in question - which is almost never the case), it is not required. e.g. - >8 info.php

Re: [PHP] session_start problems with FireFox on Mac

2008-01-13 Thread Jochem Maas
Europus schreef: Jochem Maas wrote: you also mentioned you changed the code when trying to test it on another machine - don't do that, test one thing at a time. I'm not the original poster, that wasn't me. anyway problem solved, preventative knowledge aquired, onto the next hurdle :-) I'

Re: [PHP] session_start problems with FireFox on Mac

2008-01-13 Thread Europus
Jochem Maas wrote: you also mentioned you changed the code when trying to test it on another machine - don't do that, test one thing at a time. I'm not the original poster, that wasn't me. anyway problem solved, preventative knowledge aquired, onto the next hurdle :-) I'm having some trou

Re: [PHP] session_start problems with FireFox on Mac

2008-01-13 Thread Jochem Maas
Europus schreef: Jochem Maas wrote: ?> ... to avoid this in future never add the closing php bracket to the end of the php file (unless you explicitly want to output something after the code in question - which is almost never the case), it is not required. e.g. - >8 info.php ---

Re: [PHP] session_start problems with FireFox on Mac

2008-01-13 Thread Europus
Jochem Maas wrote: ?> ... to avoid this in future never add the closing php bracket to the end of the php file (unless you explicitly want to output something after the code in question - which is almost never the case), it is not required. e.g. - >8 info.php 8 info.p

Re: [PHP] session_start problems with FireFox on Mac

2008-01-13 Thread Jochem Maas
Terry Calie schreef: ... To illustrate my php goes like this: index.php = index2.php ... to avoid this in future never add the closing php bracket to the end of the php file (unless you explicitly want to output something after the code in question - which is almost ne

Re: [PHP] session_start problems with FireFox on Mac

2008-01-12 Thread Anup Shukla
Terry Calie wrote: Hey... thanks for the replies. I installed the headers feature that Richard suggested and found that no headers were output. I started to transfer my php to another site to see if the problem replicated and I wasn't able to recreate the problem. It turns out that I "require"

Re: [PHP] session_start problems with FireFox on Mac

2008-01-12 Thread Terry Calie
Hey... thanks for the replies. I installed the headers feature that Richard suggested and found that no headers were output. I started to transfer my php to another site to see if the problem replicated and I wasn't able to recreate the problem. It turns out that I "require" a file before t

Re: [PHP] session_start problems with FireFox on Mac

2008-01-11 Thread Richard Lynch
Install Live HTTP Headers and see what headers are being sent. Then search for those headers and FireFox Mac issues online. On Fri, January 11, 2008 10:34 am, Terry Calie wrote: > Sorry if this is the wrong place to ask this question... if so please > help me figure out where to ask it. I've ask

Re: [PHP] session_start problems with FireFox on Mac

2008-01-11 Thread Daniel Brown
On Jan 11, 2008 11:53 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > With a problem like that, code and a web page are very helpful to > track it down. I'm willing to take a look at what I can with my Mac & > firefox, and see what I can sort out :) > > I just need more info.. > > > > On Jan 11, 2008,

Re: [PHP] session_start problems with FireFox on Mac

2008-01-11 Thread Jason Pruim
With a problem like that, code and a web page are very helpful to track it down. I'm willing to take a look at what I can with my Mac & firefox, and see what I can sort out :) I just need more info.. On Jan 11, 2008, at 11:34 AM, Terry Calie wrote: Sorry if this is the wrong place to ask t

Re: [PHP] session_start is slow occasionally

2007-10-04 Thread Chris
al jo wrote: Hi i have a site that is relatively high loaded (~20 reloads/sec) and i am trying to optimize it. So i have started timing sections of the php scripts to find out which is the slowest so i optimize it first. I write the times to a database( timings are done on the live server)

Re: [PHP] session_start(): Cannot send session cache limiter...

2007-08-05 Thread Nisse Engström
On Fri, 20 Jul 2007 16:39:51 -0500 (CDT), "Richard Lynch" wrote: > Did you save it as UTF-8 with that byte-order-mark (BOM) thingie? > > Does UTF-8 even HAVE a BOM? : "byte order markFEFF" U+FEFF is in UTF-8. /Nisse -- PHP Genera

Re: [PHP] session_start(): Cannot send session cache limiter...

2007-07-21 Thread Wesley Acheson
From: "Richard Lynch" <[EMAIL PROTECTED]> To: "Vanessa Vega" <[EMAIL PROTECTED]> Date: Fri, 20 Jul 2007 16:39:51 -0500 (CDT) Subject: Re: [PHP] session_start(): Cannot send session cache limiter... On Fri, July 20, 2007 3:17 am, Paul Scott wrote: > > On F

Re: [PHP] session_start(): Cannot send session cache limiter...

2007-07-20 Thread Richard Lynch
On Fri, July 20, 2007 3:17 am, Paul Scott wrote: > > On Fri, 2007-07-20 at 16:01 +0800, Vanessa Vega wrote: >> I already put session_start() on topmost part of the file..but i >> saved the >> file as utf-8..and that seems to be the problem..can anyone share >> their >> knowledge on this? >> > Set

Re: [PHP] session_start(): Cannot send session cache limiter...

2007-07-20 Thread Paul Scott
On Fri, 2007-07-20 at 16:01 +0800, Vanessa Vega wrote: > I already put session_start() on topmost part of the file..but i saved the > file as utf-8..and that seems to be the problem..can anyone share their > knowledge on this? > Set your error_reporting to at least E_ALL and check that there ar

Re: [PHP] Session_Start() error

2007-03-05 Thread Jochem Maas
Helder Lopes wrote: > *hi people, > > Hi have this error in the session cookie, how to solve this??? did you read the error message? did you look up the lines specified in the error message? did you read the manual pages related to sessions and session functions? headers have already been sent b

Re: [PHP] Session_Start() error

2007-03-05 Thread datsclark
Also make sure you don't have empty lines before the wrote in message news:[EMAIL PROTECTED] > *hi people, > > Hi have this error in the session cookie, how to solve this??? > > Warning*: session_start() > [function.session-start]: > Cannot send session ca

Re: [PHP] Session_Start() error

2007-03-05 Thread Rabih Tayyem
Hi, just put session_start() (first line) the first thing in your php file and this should solve the problem. Regards, Rabih On 3/5/07, Helder Lopes <[EMAIL PROTECTED]> wrote: *hi people, Hi have this error in the session cookie, how to solve this??? Warning*: session_start() [function.ses

Re: [PHP] session_start() and fopen

2006-09-13 Thread Christopher Weldon
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fabri wrote: > Hello, would you please help me on this issue that is making me crazy? > > > > > > I start a session with session_start() and I need to write a file, the file > is written twice! If I remove session_start the code works obviously

Re: [PHP] session_start() and fopen

2006-09-13 Thread Curt Zirzow
On 9/13/06, Fabri <[EMAIL PROTECTED]> wrote: Hello, would you please help me on this issue that is making me crazy? I'll try I start a session with session_start() and I need to write a file, the file is written twice! If I remove session_start the code works obviously fine. This has never

Re: [PHP] session_start/session_write_close creates multiple sessioncookieheaders. How to fix this.

2006-07-19 Thread Mathijs
Chris wrote: Mathijs wrote: Chris wrote: Mathijs wrote: Hello again, I Use session_write_close() so the page loads quicker because i use session on multiple place. This because session has protection for race conditions. Now it works very well and i don't have any problems at all. I only s

Re: [PHP] session_start/session_write_close creates multiple sessioncookie headers. How to fix this.

2006-07-16 Thread Chris
Mathijs wrote: Chris wrote: Mathijs wrote: Hello again, I Use session_write_close() so the page loads quicker because i use session on multiple place. This because session has protection for race conditions. Now it works very well and i don't have any problems at all. I only see that there

Re: [PHP] session_start/session_write_close creates multiple sessioncookie headers. How to fix this.

2006-07-14 Thread Mathijs
Chris wrote: Mathijs wrote: Hello again, I Use session_write_close() so the page loads quicker because i use session on multiple place. This because session has protection for race conditions. Now it works very well and i don't have any problems at all. I only see that there are multiple ses

Re: [PHP] session_start/session_write_close creates multiple session cookie headers. How to fix this.

2006-07-13 Thread Chris
Mathijs wrote: Hello again, I Use session_write_close() so the page loads quicker because i use session on multiple place. This because session has protection for race conditions. Now it works very well and i don't have any problems at all. I only see that there are multiple session cookie he

Re: [PHP] session_start

2006-04-06 Thread Anthony Ettinger
because you have nothing in $session_id. On 4/6/06, Diana Castillo <[EMAIL PROTECTED]> wrote: > If I have nothing in $session_id, why do I get this message when I do a > session_start() ? > Warning: session_start(): The session id contains invalid characters, valid > characters are only a-z, A-Z a

Re: [PHP] session_start(), Pragma and Cache-control headers

2005-08-22 Thread Kim Steinhaug \(php list\)
I solved the problem after a while, seems it had been reacently debated in the bug pages within php, to remove headers which are added by the session_start(); you can add the following : ini_set('session.use_cookies', false); session_cache_limiter(''); Kind regards, Kim Steinhaug - - - - - - - -

RE: [PHP] @session_start generates a new session_id

2004-10-27 Thread Lizet Peña de Sola
session_id($username); session_start(); Solved the problem... Thank you all for the replies... -Original Message- From: Lizet Peña de Sola [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 3:55 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] @session_start

RE: [PHP] @session_start generates a new session_id

2004-10-27 Thread Lizet Peña de Sola
- From: Reinhart Viane [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 12:49 PM To: 'Lizet Peña de Sola'; [EMAIL PROTECTED] Subject: RE: [PHP] @session_start generates a new session_id Instead of: Try this: //unregister the sessions $_SESSION['validlogin&

RE: [PHP] @session_start generates a new session_id

2004-10-27 Thread Lizet Peña de Sola
I'll try that, thanks a lot. -Original Message- From: Reinhart Viane [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 12:49 PM To: 'Lizet Peña de Sola'; [EMAIL PROTECTED] Subject: RE: [PHP] @session_start generates a new session_id Instead of:

RE: [PHP] @session_start generates a new session_id

2004-10-26 Thread Reinhart Viane
Instead of: Try this: //unregister the sessions $_SESSION['validlogin']=""; $_SESSION['username']=""; $_SESSION['password']=""; //destroy the sessions array $_SESSION = array(); //destroy the session session_destroy(); Greetings Reinhart Viane -- PHP General Mailing List (http:

RE: [PHP] @session_start generates a new session_id

2004-10-26 Thread Lizet Peña de Sola
ED] Sent: Monday, October 25, 2004 6:18 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] @session_start generates a new session_id On Mon, 25 Oct 2004 15:59:18 -0400, Lizet Peña de Sola <[EMAIL PROTECTED]> wrote: > How can I set session_auto_start On, I have a similar problem and I > thi

Re: [PHP] @session_start generates a new session_id

2004-10-25 Thread Greg Donald
On Mon, 25 Oct 2004 15:59:18 -0400, Lizet Peña de Sola <[EMAIL PROTECTED]> wrote: > How can I set session_auto_start On, I have a similar problem and I think > it's because my web hosting has that feature off. .htaccess php_flag session.auto_start on -- Greg Donald Zend Certified Engineer http

RE: [PHP] @session_start generates a new session_id

2004-10-25 Thread Lizet Peña de Sola
bject: Re: [PHP] @session_start generates a new session_id Hi, Check your PHP config file. You may enable auto session start. I think this is the reasone of problem. Sadeq On Tue, 19 Oct 2004 18:21:29 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi Matt, > >

Re: [PHP] @session_start generates a new session_id

2004-10-25 Thread Mark-Walter
Hi Sadeq, > Check your PHP config file. You may enable auto session start. I think > this is the reasone of problem. sorry for the delay and indeed your suggestion solves now my problem. Thank's a lot :-) -- Best Regards, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] @session_start generates a new session_id

2004-10-19 Thread Sadeq Naqashzade
Hi, Check your PHP config file. You may enable auto session start. I think this is the reasone of problem. Sadeq On Tue, 19 Oct 2004 18:21:29 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi Matt, > > > > @session_start(); > > > session_name("userauth"); > > > $_SESSION['SESS_CUS'] = $u

Re: [PHP] @session_start generates a new session_id

2004-10-19 Thread Mark-Walter
Hi Matt, > > @session_start(); > > session_name("userauth"); > > $_SESSION['SESS_CUS'] = $user_id; > I am not 100% sure what the problem is, but if you are trying to > change the session name to userauth, I think you need to do that > before session_start session_name() works ok so far. For ex

Re: [PHP] @session_start generates a new session_id

2004-10-19 Thread Matt M.
> @session_start(); > session_name("userauth"); > $_SESSION['SESS_CUS'] = $user_id; I am not 100% sure what the problem is, but if you are trying to change the session name to userauth, I think you need to do that before session_start http://us2.php.net/session_name -- PHP General Mailing List

Re: [PHP] session_start() warnings

2004-06-14 Thread franciccio
Always call the function on the first line of your page. Bye "Paoage" <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] > Larry E . Ullman wrote: > >> When I use session_start function, I receive the following warning > >> messages: > >> > >> Warning: session_start(): Cannot s

Re: [PHP] session_start() warnings

2004-06-12 Thread PaoAge
Larry E . Ullman wrote: When I use session_start function, I receive the following warning messages: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/w4t3c101/public_html/ListClientInfo.php:2) in /home/w4t3c101/public_html/SessionControl.p

Re: [PHP] session_start() warnings

2004-06-12 Thread Larry E . Ullman
When I use session_start function, I receive the following warning messages: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/w4t3c101/public_html/ListClientInfo.php:2) in /home/w4t3c101/public_html/SessionControl.php on line 9 Warning: se

Re: [PHP] session_start in php 4.3.6

2004-05-21 Thread Curt Zirzow
* Thus wrote Bob Lockie ([EMAIL PROTECTED]): > On 05/21/04 16:08 Michael R. Wayne spoke: > >On Fri, May 21, 2004 at 10:01:56PM +0200, Paul Godard wrote: > > > >>Hi > >> > >>All my web sites suddenly stopped working after my ISP installed the > >>newer php 4.3.6 released. The problem is when calli

Re: [PHP] session_start in php 4.3.6

2004-05-21 Thread Bob Lockie
On 05/21/04 16:08 Michael R. Wayne spoke: On Fri, May 21, 2004 at 10:01:56PM +0200, Paul Godard wrote: Hi All my web sites suddenly stopped working after my ISP installed the newer php 4.3.6 released. The problem is when calling the session_start() function. It seems that the warning message sa

Re: [PHP] session_start in php 4.3.6

2004-05-21 Thread Michael R. Wayne
On Fri, May 21, 2004 at 10:01:56PM +0200, Paul Godard wrote: > Hi > > All my web sites suddenly stopped working after my ISP installed the newer php 4.3.6 > released. The problem is when calling the session_start() function. It seems that > the warning message saying that the session has alrea

Re: [PHP] session_start() make netscape 4.7 reload page.

2003-12-14 Thread Jonathan Zhang
Marek, Thank you very much. "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jonathan Zhang wrote: > > test.php > > --> > > > session_start(); > > ?> > > > > > > > > > > For Win2kpro+netscape 4.7,all form data you enter in this page will lost > > when resize the

Re: [PHP] session_start() make netscape 4.7 reload page.

2003-12-14 Thread Marek Kilimajer
Jonathan Zhang wrote: test.php --> For Win2kpro+netscape 4.7,all form data you enter in this page will lost when resize the browser's window size, ns4.7 have reload this page when resize the window. But if you remove the session_start() from this page, the issue will not exist. Is there any sol

Re: [PHP] session_start() make netscape 4.7 reload page.

2003-12-14 Thread BAO RuiXian
Jonathan Zhang wrote: test.php --> For Win2kpro+netscape 4.7,all form data you enter in this page will lost when resize the browser's window size, ns4.7 have reload this page when resize the window. But if you remove the session_start() from this page, the issue will not exist. I use Win2kp

Re: [PHP] Session_start() problem

2003-10-01 Thread Curt Zirzow
* Thus wrote Jeff McKeon ([EMAIL PROTECTED]): Not related to your problem but: > session_regisister("userid", "userpassword"); spelling ~~~^^ Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Session_start() problem

2003-10-01 Thread CPT John W. Holmes
From: "Jeff McKeon" <[EMAIL PROTECTED]> [snip] > where do I set the default location for session data? session.save_path in php.ini ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session_start() || shell access problem......

2003-09-21 Thread Rasmus Lerdorf
On Sun, 21 Sep 2003, CF High wrote: > Well, is there a way to pass params to file_to_be_executed in command line? > > For example: > > $my_param = 'my_include_path'; > $text = `usr/local/bin/php /path/to/my/php/page.php`; > ?> > > Somehow I need $my_param to be passed to page.php (the f

Re: [PHP] session_start() || shell access problem......

2003-09-21 Thread CF High
Thank the heavens above Actually, thank "Ben", a poster from php.net manual. Looks like environment variables are not passed to file when it is executed from the command line. A workaround is: $inc_path = $_SERVER['DOCUMENT_ROOT'] . '/'; $remaddr = getenv("DOCUMENT_ROOT"); putenv("DOCUM

Re: [PHP] session_start() || shell access problem......

2003-09-21 Thread CF High
H, Well, is there a way to pass params to file_to_be_executed in command line? For example: Somehow I need $my_param to be passed to page.php (the file to be processed in command line). Any ideas? --Noah "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > S

Re: [PHP] session_start() || shell access problem......

2003-09-21 Thread Marek Kilimajer
Sessions don't work on command line and that is how you run your script - from command line. CF High wrote: Hey Robert. Indeed, hard to find the problem. I don't believe it's a whitespace issue, or even a "Headers sent issue", despite the fact that I'm receiving that error. Check it out: test.

Re: [PHP] session_start() || shell access problem......

2003-09-20 Thread CF High
Hey Robert. Indeed, hard to find the problem. I don't believe it's a whitespace issue, or even a "Headers sent issue", despite the fact that I'm receiving that error. Check it out: test.php contains just one line: test1.php, the file to be executed, contains just one line: There are no line

Re: [PHP] session_start() || shell access problem......

2003-09-20 Thread Robert Cummings
On Sat, 2003-09-20 at 15:46, CF High wrote: > Hey all. > > I'm running a script from the command-line php interpreter as follows: > (thanks to D. Souza for lead) > > $text = `usr/local/bin/php /path/to/my/php/page.php`; > > within the read file I want to enable sessions, so I session_start() at

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-04 Thread Viraj Kalinga Abayarathna
Thank you Curt for the explanation. Viraj Curt Zirzow wrote: > > * Thus wrote Viraj Kalinga Abayarathna ([EMAIL PROTECTED]): > > > >header("Cache-control: private"); > > > > p.s. > > and also if there is any one wo knows what exactly this header line > > means, > > please post a brief de

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-04 Thread Christophe Chisogne
hecchan wrote: Using IE 6 (XP) i can't see the source generated for PHP even the page works properly (It doesn't happend with Mozilla or Opera). The "View source" in IE 5 and 6 is buggy : it doesnt work as soon as "there are too many files in the Temp Internetfiles folder". sic. Solution is of cou

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-03 Thread Curt Zirzow
* Thus wrote hecchan ([EMAIL PROTECTED]): > Hi, > Using IE 6 (XP) i can't see the source generated for PHP even the page > works properly (It doesn't happend with Mozilla or Opera). > > If i comment out the line: > session_start() > This behaviour stops. > Any idea what's going on? What is your

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-03 Thread Curt Zirzow
* Thus wrote Viraj Kalinga Abayarathna ([EMAIL PROTECTED]): > >header("Cache-control: private"); > > p.s. > and also if there is any one wo knows what exactly this header line > means, > please post a brief decription. thanks. private means that only the intended person that is getting t

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-03 Thread Viraj Kalinga Abayarathna
Hi hecchan, I don't have a crear idea on what your problem is, but i have read an article on phpfreak.com, it says to work the sessioned PHP scripts correctly with IE6 you have to insert.. header("Cache-control: private"); immediatly after starting the session. try this.

RE: [PHP] session_start

2003-02-26 Thread John W. Holmes
> At 01:36 27.02.2003, Mr Percival said: > [snip] > >What I was hoping to do was to be able to give a error message if the > server > >was having this problem, but in order to do that I was needing a way of > >knowing if it was because the session_start faile

RE: [PHP] session_start

2003-02-26 Thread Ernest E Vogelsinger
At 01:36 27.02.2003, Mr Percival said: [snip] >What I was hoping to do was to be able to give a error message if the server >was having this problem, but in order to do that I was needing a way of >knowing if it was because the session_start failed or users

Re: [PHP] session_start

2003-02-26 Thread Justin French
Yeah, get a new host :) J on 27/02/03 11:36 AM, Mr Percival ([EMAIL PROTECTED]) wrote: > >> [snip] >>> Not to be nosey or anything but "usually" session data will always be saved >>> or not. How come one would want to check to see if is was or not. >> --

RE: [PHP] session_start

2003-02-26 Thread Mr Percival
> [snip] > >Not to be nosey or anything but "usually" session data will always be saved > >or not. How come one would want to check to see if is was or not. > [snip] Maybe I am on the wrong track but the other day I

RE: [PHP] session_start

2003-02-24 Thread Ernest E Vogelsinger
At 20:58 13.02.2001, Dennis Cole spoke out and said: [snip] >Not to be nosey or anything but "usually" session data will always be saved >or not. How come one would want to check to see if is was or not. [snip] I didn

RE: [PHP] session_start

2003-02-24 Thread Dennis Cole
Cc: [EMAIL PROTECTED] Subject: Re: [PHP] session_start At 13:36 24.02.2003, Mr Percival said: [snip] >So how do I check if the session write failed? > >I thought perhaps > >if(session_id() == ""){ > echo "error"; >} >

Re: [PHP] session_start

2003-02-24 Thread Ernest E Vogelsinger
At 13:36 24.02.2003, Mr Percival said: [snip] >So how do I check if the session write failed? > >I thought perhaps > >if(session_id() == ""){ > echo "error"; >} > >but if all session_start does is basically assign a session ID then >session_id will nev

Re: [PHP] session_start

2003-02-24 Thread Mr Percival
So how do I check if the session write failed? I thought perhaps if(session_id() == ""){ echo "error"; } but if all session_start does is basically assign a session ID then session_id will never be empty even when the write fails. Thanks! :) -- PHP General Mailing List (http://www.php.

Re: [PHP] session_start

2003-02-24 Thread Ernest E Vogelsinger
At 05:52 24.02.2003, Mr Percival said: [snip] >According to the PHP manual session_start always returns true. > >Ther are times (like when there is a disk full error on the server) that the >sesison_start will fail because its unable to write the session tmp

RE: [PHP] session_start

2003-02-23 Thread Dennis Cole
The manual is right, session_start should always return true. For example using this code: PHP is set to save to C:\tmp which does not exist. But, because session data is not saved at the beginning of the page where the session_start is called, but at the end there the script is through executin

Re: [PHP] session_start

2003-02-23 Thread - Edwin
Hello "Mr Percival" <[EMAIL PROTECTED]> wrote: > Hi, > > According to the PHP manual session_start always returns true. > > Ther are times (like when there is a disk full error on the > server) that the sesison_start will fail because its unable to > write the session tmp file. > > So should

Re: [PHP] session_start... twice?

2002-10-25 Thread Marek Kilimajer
This has to do with how php works with session internaly. $_SESSION is set after the fist call to session_start(), session_destroy() destroys only data that are already stored, the second call to session_start() tries to retrieve these data, but there are none. Use $_SESSION=array() before sessi

Re: [PHP] session_start() --> no more output

2002-09-23 Thread Hans Wilmer
On Sun, Sep 22, 2002 at 06:03:50PM -0500, Michael Sims wrote: > > >session_register("bunt"); > >phpinfo(); > >?> > > > >This is just a simple example. The problem is that the script produces > >no output at all when called with the browser. > > Is it possible that display_errors is set to "Off" i

Re: [PHP] session_start() --> no more output

2002-09-22 Thread Michael Sims
On Mon, 23 Sep 2002 00:54:07 +0200, you wrote: >session_register("bunt"); >phpinfo(); >?> > >This is just a simple example. The problem is that the script produces >no output at all when called with the browser. Is it possible that display_errors is set to "Off" in your php.ini? If this were the

RE: [PHP] session_start() times and resets?

2002-04-25 Thread Johnson, Kirk
See session.gc_maxlifetime in php.ini. The session timer is based on the session file access (or modified?) timestamp. It gets reset every time the session data is accessed, which is every time a page using that session is requested. Kirk > -Original Message- > From: Smileyq [mailto:[EMA

Re: [PHP] Session_start()

2002-03-07 Thread Erik Price
On Thursday, March 7, 2002, at 07:25 PM, Matthew Walker wrote: > Do I have to place a session_start() function at the top of a page > (.php) before the ? When they say that you need to put session_start() before the headers, they're referring to the HTTP headers, not the tag of the HTML doc

RE: [PHP] Session_start()

2002-03-07 Thread Matthew Walker
You must place session_start() before any other /output/. It can come after other code, as long as nothing will be output before it. Alternately, you can turn on output buffering and just not worry about it. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message-

Re: [PHP] Session_start() issue??

2001-12-03 Thread Chris Seymour
Hi Jim, Thanks for you replies. I was using relative paths and still I got the seperate sessions being opened. The interesting part was this was only happening on my dev machine (win32), when I moved the files to a Linux box, I did not have the same problem. Must be something in the IIS or P

Re: [PHP] Session_start() issue??

2001-12-03 Thread Jim
Also read about session management at http://php.net/session >Hi all, >Has anyone seen this. I have a login form (login.htm) which calls a login >handler (check_login.php). If the login is sucessfull the check_login.php >will set a couple session variables, then redirect the user to a menu pa

Re: [PHP] Session_start() issue??

2001-12-03 Thread Jim
If you redirect using the full (http://foo.bar/rex...) URL, it may be restarting your session. Try using relative URLs. >Hi all, >Has anyone seen this. I have a login form (login.htm) which calls a login >handler (check_login.php). If the login is sucessfull the check_login.php >will set a c

Re: [PHP] session_start() or session_register() AND cookies

2001-10-01 Thread Rasmus Lerdorf
Change the session_name and you can. On Mon, 1 Oct 2001, [iso-8859-1] Augusto Cesar Castoldi wrote: > Hi... > > If I use the session_start or session_register I'll > never be able to open two sessions in the same > computer in the same time? > > regards, > > Augusto > > >___

Re: [PHP] session_start() part III

2001-08-13 Thread Richard Baskett
When you named your session by using session_name(mysession) you renamed your session from PHPSESSID to mysession. You do not need to destroy each session when someone closes the browser out. If you do not, the persons session will be stored in a temp folder on the php server and once in awhile

Re: [PHP] session_start() part III

2001-08-13 Thread Renze Munnik
On Mon, Aug 13, 2001 at 05:39:47PM +0200, Aniceto Lopez wrote: > I guess Renze, I have to use session_start() in the file where > I want to output data from the session > > All this questions about session are generated because I want > to control the acces to some of the web pages in a site so o

Re: [PHP] session_start() part II

2001-08-13 Thread Richard Baskett
On the second page before the html tag write: and then go ahead and echo your $myvar; > ok, let's have this in the right place > in a file named startsesion.php i.e. > > session_start(); > session_name("mysesion"); > session_register("myvar"); > $myvar = "whatever"; > > a SID is generated

Re: [PHP] session_start() part II

2001-08-13 Thread Renze Munnik
On Mon, Aug 13, 2001 at 04:57:08PM +0200, Aniceto Lopez wrote: > ok, let's have this in the right place > in a file named startsesion.php i.e. > > session_start(); > session_name("mysesion"); > session_register("myvar"); > $myvar = "whatever"; > > a SID is generated autmaticaly > > > I've been

Re: [PHP] session_start() problem

2001-08-13 Thread Richard Baskett
Did you make sure everything below is BEFORE the html tag? Also you can just set the variable $sesionvar like this: $sesionvar = "fulanito"; instead of $HTTP_SESSION_VARS["sesionvar"] = "fulanito"; > lines in the acceso.php file: > > 27 session_name(primera); > 28 session_start(); > 29 sess

Re: [PHP] session_start ()

2001-05-08 Thread Dennis Gearon
Just make sure that there is no way a script can exit without calling 'page_close()' so that the data makes it to your container. Was written: >When using session_start () over alot of pages, do i need to reregister the origional >>session? >example: > >page1:session_start(); > sessio

Re: [PHP] session_start ()

2001-05-08 Thread elias
You register it just when you want to assign to it a value, ie: page1.php session_start(); session_register("username"); $username = "shawn"; page2.php session_start(); echo "Welcome $username"; page3.php session_start(); echo "Welcome again $username" so basically, register once and use ses

Re: [PHP] session_start

2001-03-07 Thread Ernest E Vogelsinger
At 22:05 07.03.2001, Jacky@lilst said: [snip] >People >very basic question here, I wanna assign username onto session after the >login succeed, I use: > >session_start(); >session_register("username"); >$UserNameSession="username"; [snip

Re: [PHP] session_start

2001-03-07 Thread Ankur Verma
As far as I know, the session fucntions work only with php4 for php3, you might want to take a look at phplib hope that helps Ankur Verma - Original Message - From: "Jacky@lilst" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 08, 2001 2:35 AM Subject: [PHP] session_

Re: [PHP] session_start

2001-03-06 Thread Matthieu Le Corre
Le Mercredi 7 Mars 2001 09:11, vous avez écrit : > Le Mercredi 7 Mars 2001 22:05, vous avez écrit : > > People > > very basic question here, I wanna assign username onto session after the > > login succeed, I use: > > > > session_start(); > > session_register("username"); > > the syntax for ses

Re: [PHP] session_start

2001-03-06 Thread Matthieu Le Corre
Le Mercredi 7 Mars 2001 22:05, vous avez écrit : > People > very basic question here, I wanna assign username onto session after the > login succeed, I use: > > session_start(); > session_register("username"); the syntax for session_register is : session_register("session_names",var_without_qu

RE: [PHP] session_start

2001-03-06 Thread Nick Norton
To assign session variables you need to reference them by name: $username = "new_user"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] session_start

2001-02-27 Thread Richard Lynch
> do we have to use in each page using the data of a session the > session-start()? > cause in the manual it says that session_start -- Initialize session data > and session_start() creates a session ?! > thanks You want session_start() at the top of every page that uses session data. It initial

Re: [PHP] session_start problem

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, Markus H. Maussner wrote: > hi... > > every time i do a session_start(); with php i get in the first two lines > of the output this > > &PHPSESSID=ba606b5a90dbb4410417b4c612aaf1c9"">Your data Contact > LOGOUT > &PHPSESSID=ba606b5a90dbb4410417b4c612aaf1c9"">Contact

Re: [PHP] session_start() and cache problem ...

2001-01-17 Thread Richard Lynch
> The other website does use session_start(). A "HEAD / HTTP/1.0" gives > I have the extra lines : Expires, Cache-Control, Pragama. > > I would like to get rid of those 3 lines : is it possible and how could > I achieve that ? Probably by sending your own (blank) headers with those names. Th