RE: Session Variables
| From: | Uttam | Date: | Fri, 25 Apr 2003 07:10:05 +0000 |
| Subject: | RE: Session Variables | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-19607@lists.php.net to get a copy of this message | ||
connection is a variable of type 'resource' which can not be preserved
across sessions.
you have to make fresh connection each time.
regds,
-----Original Message-----
From: Harpreet [mailto:harpreet@crispincorp.com]
Sent: Thursday, April 24, 2003 23:39
To: php-windows@lists.php.net
Subject: Session Variables
I can connect to sql server database using mssql_connect. I am trying to
use
the same connection saved as a session variable to be used again on the
second page. But i get an error saying connection to database not open.
It seems like i cant use the session variables on the next page and have
to
redefine it on each page or hard code the connection on each page.
Please help I am stuck on this issue.
Thanks,
Regards,
Harpreet