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
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.
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
(/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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
}