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
(/tmp) in Unknown on line 0 --- Dennis Cole DCW Productions.us -Original Message- From: Mr Percival [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 11:52 PM To: [EMAIL PROTECTED] Subject: [PHP] session_start Hi, According to the PHP manual session_start

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

[PHP] session_start

2003-02-23 Thread Mr Percival
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 shouldnt session_start be able to return false if the file write fails? O

[PHP] session_start() in php.ini does not work on Microsoft IIS

2003-01-06 Thread Scott Fletcher
Hi! It have been a while that I don't remember how did I jogged MS-IIS's memory or something. Perhap a baseball bat will help. I'm not here to ask for help on writing script for session ID or stuffs like that. I'm here asking for help in jogging IIS's memory with a baseball bat. When I

[PHP] session_start

2002-12-14 Thread John Taylor-Johnston
I used to think I knew how to do this ... take pity :) I start my session: session_name("TestALS"); session_start(); I register a variable: session_register("studentid"); if (isset($_SESSION["studentid"])) { $id = $_SESSION["studentid"]; echo "\$studentid= $studentid"; } Pretend $studentid con

[PHP] session_start() and utf-8

2002-11-18 Thread Marco Schmitz
hi, i'm having a little problem with session_start() and utf-8 and i want just to figure out if this is a bug or just my incompetence. this is the code: TITLE saving this little piece in ansi encoding everything is working just fine. BUT, saving this with enconding is set to UTF-8 t

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

[PHP] session_start... twice?

2002-10-25 Thread James Taylor
I have a single page site I'm working on that displays the contents of your current session. Users can clear the contents by clicking a link that triggers a $PHP_SELF?clear=1 - Before any headers are sent out, the script checks for $_GET['clear'], and if it's set, it does a session_destroy();. For

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

[PHP] session_start function breaks flush function in 4.2.1

2002-09-23 Thread Chris Andrew
I use a script which initially sends a friendly message to a browser, and then goes about some lengthy processing. The browser is IE and I am aware of the 256 byte issue. The script worked nicely in php.4.1.1 but since installing 4.2.1, the flush function doesn't do its job. However, it works if

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

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

2002-09-22 Thread Hans Wilmer
Hi, the following PHP script causes me trouble: This is just a simple example. The problem is that the script produces no output at all when called with the browser. I could use instead, but I won't get any output either. Everything works as expected when session_start() or session_reg

[PHP] session_start and HTTP headers in Mozilla, plz help

2002-07-11 Thread Lars Olsson
Hi! I've run across a problem when using session_start and HTTP headers in Mozilla. I'm trying to write a snippet of code that checks whether a user has logged in or not. If the user has a session variable set I want to display the page and if he or she hasn't I want to give them a 403 Forbid

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

2002-04-25 Thread Johnson, Kirk
mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 24, 2002 11:35 PM > To: [EMAIL PROTECTED] > Subject: [PHP] session_start() times and resets? > > > I have one question that I've been working about. When you setup a > session to last a particular time say 1 week. If the us

[PHP] session_start() times and resets?

2002-04-24 Thread Smileyq
I have one question that I've been working about. When you setup a session to last a particular time say 1 week. If the user comes back to that page because the week is over to reset the session does the user then at that time reset the timer to yet another week. I'm trying to figure out a way

[PHP] session_start() and javascript problem

2002-03-26 Thread bob
I always get a error message:document.form1.user isn't an object. if i get rid of session_start(),everything becomes well. thanks in advane! login TABLE { FONT-SIZE: 10.5pt }