I have my Sessions Started in a different function...
I have a different function displaying a form dependent
on input... At the end of the body of the Script
(The Script that is not part of any function
//based on an online example by: URS Gehrig...
I try to destroy the session.. This isn't wor
> -Original Message-
> From: Chris Knipe [mailto:[EMAIL PROTECTED]]
> Sent: 10 May 2002 04:38
>
> Just to clarify myself above...
> if ($var1 = $var2) { .
>
> In my crazy head, I see $var1 and $var2 to be in a sort of
> "read-only" state
> inside the () of the if statement. For a i
> if ($VerifyPasword[ContactID] = $_SESSION['ContactID'])
>
> This statement is /always/ true if $_SESSION['ContactID'] is non-zero, or
> non-empty.
>
> If your code is copy-and-paste then the error is most likely because you
used
> a single 's' in $VerifyPasword[ContactID]. And also is better t
On Friday 10 May 2002 10:52, Steve Buehler wrote:
> Nokeep writing to the list. Next time, you might actually
Good idea.
[snip]
> >What baffles me, is
> >
> > while ($VerifyPassword = mysql_fetch_array($PasswordCheckSQL)) {
> > // Compare UserIDs
> > if
> I am not an expert at PHP / MySQL. To me it would sound like the
> one = is assigning the $VerifyPasword[ContactID] whatever is in
> $_SESSION['ContactID'] which would mean that the else part would never be
> executed. Honestly though, there is a lot that I don't know. I know very
I
s, that this one requires a single = and not a double
>like all the other hundreds I have in my code?
>
>:) Thanks.
>
>--
>me
>
>
>- Original Message -
>From: "Steve Buehler" <[EMAIL PROTECTED]>
>To: "Chris Knipe" <[EMAIL PROTECTED]&g
ust be who is stupid here... But hey, I'm trying :)
>
>--
>me
>
>
>- Original Message -
>From: "Chris Knipe" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, May 09, 2002 1:43 AM
>Subject: [PHP] Destroying Sessions
>
>
Ok why does this not work?
session_name(adminid);
session_start();
unset($sess);
session_unset();
session_destroy();
session_write_close();
$sess = 0;
etc etc etc etc etc etc..
After all that is executed I take a look at the session file and what do I
see? All the session variables still there
8 matches
Mail list logo