Re: session
| From: | H. J. Wils | Date: | Sun, 17 Oct 2004 14:17:30 +0000 |
| Subject: | Re: session | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-36871@lists.php.net to get a copy of this message | ||
hey thanx it works, but....
why is that? i mean, session are there to save data which te user cant see... isnt there another way to pass the SID? i have the feeling passing the SID trhough the url-paramters is harming the security, am i right?
From: "Brad Bonkoski" <bbonkosk@tampabay.rr.com>
To: "H. J. Wils" <double_u1@hotmail.com>, <php-db@lists.php.net>
Subject: Re: [PHP-DB] session
Date: Sun, 17 Oct 2004 09:46:06 -0400
MIME-Version: 1.0
Received: from pb1.pair.com ([216.92.131.4]) by mc5-f14.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sun, 17 Oct 2004 06:47:55 -0700
Received: (qmail 35123 invoked by uid 1010); 17 Oct 2004 13:47:04 -0000
Received: (qmail 33188 invoked by uid 1010); 17 Oct 2004 13:46:19 -0000
X-Message-Info: JGTYoYF78jGDHqvDtc0+QckXsrFscNGe
Mailing-List: contact php-db-help@lists.php.net; run by ezmlm
Precedence: bulk
list-help: <mailto:php-db-help@lists.php.net>
list-unsubscribe: <mailto:php-db-unsubscribe@lists.php.net>
list-post: <mailto:php-db@lists.php.net>
Delivered-To: mailing list php-db@lists.php.net
Delivered-To: ezmlm-scan-php-db@lists.php.net
Delivered-To: ezmlm-php-db@lists.php.net
Message-ID: <002e01c4b44f$a72b8600$6500a8c0@BRADWIN>
References: <BAY2-F31z02H67yRLVb0004cb0c@hotmail.com>
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-Virus-Scanned: Symantec AntiVirus Scan Engine
Return-Path: php-db-return-36870-double_u1=hotmail.com@lists.php.net
X-OriginalArrivalTime: 17 Oct 2004 13:47:55.0249 (UTC) FILETIME=[E77EF610:01C4B44F]
I believe you need to pass the session variable along to the next page...
Something like:
On page 1:
if session is set
{
$s = SID;
echo "<a href=\"page.php?$s\">Link</a>";
}
----- Original Message ----- From: "H. J. Wils" <double_u1@hotmail.com>
To: <php-db@lists.php.net>
Sent: Sunday, October 17, 2004 9:38 AM
Subject: [PHP-DB] session
sorry, forgot to change the subject :), just to be sure here is my question again.. Hi everybody, For quite a while i'm struggeled with my session. It doesn't seem to work, can anyone help me? This is my code: page 1: session_start(); $_SESSION["test"] = "tryin..."; if (isset($_SESSION["test"])) { echo "<a href='session2.php'>next page</a>"; echo "<br>".session_id(); } page 2: session_start(); if (isset($_SESSION["test"])) { echo $_SESSION["test"]; }else { echo "No sessionvariable found.."; } echo "<br>".session_id()."<br>"; On page two, there's always the 'no sessionvariable found...'-message, further the session id also changes... i dont understand what i am doing wrong... _________________________________________________________________ Play online games with your friends with MSN Messenger http://messenger.msn.nl/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _________________________________________________________________ MSN Search, for accurate results! http://search.msn.nl