U just have to add global $PHPSESSID
to make the session variable global;
>From: "Tobias Talltorp" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [PHP] Verify session in function
>Date: Mon, 5 Mar 2001 18:30:00 +0100
>
>I am building my first basic fun
I am building my first basic function to verify a session.
If the verification is not in the function it works...
What am I missing?
(I couldn“t find anything about this in the mailing list archive)
-- This works -->
session_start();
if (isset($PHPSESSID)){
echo "ok";
2 matches
Mail list logo