Ask a Question related to ASP.NET General, Design and Development.
-
Helen G #1
Sessions not working
Hello
We have a asp.net solution which consists of 5 projects. Up until a few
days ago, when we deployed the solution on our webserver all was fine. We
were copying the dll's and aspx pages to the appropriate folders.
However for the past couple of days the deployed site will no longer work as
no session variables are being created or updated. We have set a number of
session variables in the application start, but these are not being created.
We have tried re-booting the server, and various IIS setups (it is IIS 5.0
as far as I know). We have also set it up on a new webserver with no luck.
We are out of ideas, and wondered if anyone else had an idea.
Thanks in advance
Helen.
Helen G Guest
-
CGI::Sessions : Deleting expired sessions
Hi, I use CGI::Sessions to save the sessions into MySQL. The problem is, if the user just close the browser windows without logging off, I can't... -
php4+apache1.3+xp with sessions not working...
Please help. I seem to have a major problem with sessions on my setup. No simple example seems to work. Example below: page1.php: <?php //... -
Database sessions and file sessions
Can database sessions and file system sessions co-exist on the same server. I have 2 applications that use sessions. One uses the standard php... -
[PHP] problem with sessions - IE working after session.use_trans_sid enabled.
On 17 August 2003 12:38, anders thoresson wrote: Just a wild guess -- but has your IE got cookies blocked, whilst Opera is accepting them? ... -
Carl Prothman [MVP] #2
Re: Sessions not working
Helen,
Did you install any anti-virus software? In particular, if the anti-virus software
"touches" the web.config, your application will be restarted, and hence you will
lose your session vars.
If not, then take a look at the following MS KB search. There are a number
of reasons why your application is losing Session state - depending on it's
configuration.
[url]http://support.microsoft.com/search/default.aspx?Catalog=LCID%3D1033%26CDID%3DEN-US-KB%26PRODLISTSRC%3DON&withinResults=&QuerySo[/url]
urce=gASr_Query&Product=aspnet&Queryc=session&Quer y=session&KeywordType=ANY&maxResults=25&Titles=fal se&numDays=
--
Thanks,
Carl Prothman
Microsoft ASP.NET MVP
[url]http://www.able-consulting.com[/url]
"Helen G" <helen@pracctice.com> wrote> We have a asp.net solution which consists of 5 projects. Up until a few
> days ago, when we deployed the solution on our webserver all was fine. We
> were copying the dll's and aspx pages to the appropriate folders.
>
> However for the past couple of days the deployed site will no longer work as
> no session variables are being created or updated. We have set a number of
> session variables in the application start, but these are not being created.
>
> We have tried re-booting the server, and various IIS setups (it is IIS 5.0
> as far as I know). We have also set it up on a new webserver with no luck.
>
> We are out of ideas, and wondered if anyone else had an idea.
>
> Thanks in advance
> Helen.
>
>
Carl Prothman [MVP] Guest
-
Mark #3
Sessions not working
After starting a session and assigning data to the session variable (ie.
$_SESSION['username']), the variable only contains a value on the page the
session was created on.
For example, moderators on my site log into their accounts on a page called
admin.php. Once the username/password have been matched against the values
in the mysql database, I want to assign the username to
$_SESSION['username'] so it's available on all pages.
If I print out the contents of $_SESSION['username'] on admin.php right
after they've logged in, it will display their username without problem, but
once the user leaves admin.php, $_SESSION['username'] is blank.
It doesn't seem to matter if I attach PHPSESSID=session_id() to the URL or
not. $_SESSION['username'] is always blank once the user leaves the page
where session_start() was originally called.
Does anyone have any ideas on why this might be? Here are my hosts session
settings from phpinfo() in case they're relevant:
session.auto_start - Off
session.cache_expire - 180
session.cache_limiter - nocache
session.cookie_domain - no value
session.cookie_lifetime - 0
session.cookie_path - /
session.cookie_secure - Off
session.entropy_file - no value
session.entropy_length - 0
session.gc_maxlifetime - 1440
session.gc_probability - 1
session.name - PHPSESSID
session.referer_check - no value
session.save_handler - files
session.save_path - /tmp
session.serialize_handler - php
session.use_cookies - On
session.use_trans_sid - 1
I created a the directory /tmp on my webspace, but it didn't help at all.
Any help here would be appreciated.
Thanks
Mark Liam
Mark Guest
-
Dung Nguyen #4
Re: Sessions not working
Mark,
called.> ... once the user leaves the page where session_start() was originally
When and where are you calling session_start() ?
Just in the Admin.php file?
-dn
"Mark" <npspam@omas.com> wrote in message
news:L8APb.53191$7JB1.9536@news04.bloor.is.net.cab le.rogers.com...called> After starting a session and assigning data to the session variable (ie.
> $_SESSION['username']), the variable only contains a value on the page the
> session was created on.
>
> For example, moderators on my site log into their accounts on a pagevalues> admin.php. Once the username/password have been matched against thebut> in the mysql database, I want to assign the username to
> $_SESSION['username'] so it's available on all pages.
>
> If I print out the contents of $_SESSION['username'] on admin.php right
> after they've logged in, it will display their username without problem,session> once the user leaves admin.php, $_SESSION['username'] is blank.
>
> It doesn't seem to matter if I attach PHPSESSID=session_id() to the URL or
> not. $_SESSION['username'] is always blank once the user leaves the page
> where session_start() was originally called.
>
> Does anyone have any ideas on why this might be? Here are my hosts> settings from phpinfo() in case they're relevant:
>
> session.auto_start - Off
> session.cache_expire - 180
> session.cache_limiter - nocache
> session.cookie_domain - no value
> session.cookie_lifetime - 0
> session.cookie_path - /
> session.cookie_secure - Off
> session.entropy_file - no value
> session.entropy_length - 0
> session.gc_maxlifetime - 1440
> session.gc_probability - 1
> session.name - PHPSESSID
> session.referer_check - no value
> session.save_handler - files
> session.save_path - /tmp
> session.serialize_handler - php
> session.use_cookies - On
> session.use_trans_sid - 1
>
> I created a the directory /tmp on my webspace, but it didn't help at all.
> Any help here would be appreciated.
>
> Thanks
> Mark Liam
>
>
Dung Nguyen Guest
-
Mark #5
Re: Sessions not working
It's being called only in the admin file, at the top of the page before the
script outputs anything to the screen. The code I'm using is below
(simplified). It starts a session in admin.php, sets $_SESSION['username']
to "BLACK" and then provides a link to index.php. If I follow the link to
index.php, which echos the contents of $_SESSION['username'] to the screen
and nothing appears. Index.php does not call session_start again because
I'm only using sessions for specific accounts and the code is set up to only
start a session when a user logs in (only moderators are required to log in,
anyone else can read/post without an account).
<?php
// CONNECT TO DATABASE
$sq = mysql_connect("dbname", "dbuser", "dbpass")
or die("Unable to connect to database: " . mysql_error() . "<BR>");
mysql_select_db("dbname");
// IF SUBMIT WAS PRESSED, VERIFY IDENTITY
if ($_POST["submit"]) {
// QUERY DATABASE FOR MATCHING USER/PASSWORD
$result = mysql_query("SELECT * FROM users WHERE uname='$adminname' AND
upass='$adminpass'")
or die("Unable to query database: " . mysql_error() . "<BR>");
if (mysql_num_rows($result) <= 0) {
echo("<BR><CENTER><B>Invalid username/pasword combination. Click <A
HREF=\"admin.php\">here</A> to try again.</B></CENTER><BR><BR><BR>");
}
// username & password match
// begin session...
else {
session_start();
$_SESSION['username'] = "BLACK";
echo("Session id: " . session_id());
echo("<A HREF=\"index.php\">Index</A>");
}
mysql_free_result($result);
mysql_close($sq);
include("incs/footer.php");
exit();
}
?>
"Dung Nguyen" <dung@ucdavis.edu> wrote in message
news:bumkdj$ric$1@woodrow.ucdavis.edu...the> Mark,
>> called.> > ... once the user leaves the page where session_start() was originally
>
> When and where are you calling session_start() ?
>
> Just in the Admin.php file?
>
> -dn
>
>
> "Mark" <npspam@omas.com> wrote in message
> news:L8APb.53191$7JB1.9536@news04.bloor.is.net.cab le.rogers.com...> > After starting a session and assigning data to the session variable (ie.
> > $_SESSION['username']), the variable only contains a value on the pageor> called> > session was created on.
> >
> > For example, moderators on my site log into their accounts on a page> values> > admin.php. Once the username/password have been matched against the> but> > in the mysql database, I want to assign the username to
> > $_SESSION['username'] so it's available on all pages.
> >
> > If I print out the contents of $_SESSION['username'] on admin.php right
> > after they've logged in, it will display their username without problem,> > once the user leaves admin.php, $_SESSION['username'] is blank.
> >
> > It doesn't seem to matter if I attach PHPSESSID=session_id() to the URLpage> > not. $_SESSION['username'] is always blank once the user leaves theall.> session> > where session_start() was originally called.
> >
> > Does anyone have any ideas on why this might be? Here are my hosts> > settings from phpinfo() in case they're relevant:
> >
> > session.auto_start - Off
> > session.cache_expire - 180
> > session.cache_limiter - nocache
> > session.cookie_domain - no value
> > session.cookie_lifetime - 0
> > session.cookie_path - /
> > session.cookie_secure - Off
> > session.entropy_file - no value
> > session.entropy_length - 0
> > session.gc_maxlifetime - 1440
> > session.gc_probability - 1
> > session.name - PHPSESSID
> > session.referer_check - no value
> > session.save_handler - files
> > session.save_path - /tmp
> > session.serialize_handler - php
> > session.use_cookies - On
> > session.use_trans_sid - 1
> >
> > I created a the directory /tmp on my webspace, but it didn't help at>> > Any help here would be appreciated.
> >
> > Thanks
> > Mark Liam
> >
> >
>
Mark Guest
-
Dung Nguyen #6
Re: Sessions not working
Mark,
Web servers are stateless machines. Each URL request, i.e. each page is its
own entity. The idea behind session is to provide a mechanism for defining
states. Having said that, the session_start() function called in admin.php
is complete once PHP reaches the bottom of the page (admin.php). The
session information would have been written out to a temporary file. The
next page the user accesses, e.g. user.php knows nothing of your intention
to use the previous states unless you tell it too, i.e. via a call to
session_start().
So at the top of every page you need to call session_start() so that it is
able to access the information stored in the session.
Hope that helps.
-DN
"Mark" <npspam@omas.com> wrote in message
news:uGAPb.53685$7JB1.45230@news04.bloor.is.net.ca ble.rogers.com...the> It's being called only in the admin file, at the top of the page before$_SESSION['username']> script outputs anything to the screen. The code I'm using is below
> (simplified). It starts a session in admin.php, setsto> to "BLACK" and then provides a link to index.php. If I follow the linkonly> index.php, which echos the contents of $_SESSION['username'] to the screen
> and nothing appears. Index.php does not call session_start again because
> I'm only using sessions for specific accounts and the code is set up toin,> start a session when a user logs in (only moderators are required to log(ie.> anyone else can read/post without an account).
>
> <?php
>
> // CONNECT TO DATABASE
>
> $sq = mysql_connect("dbname", "dbuser", "dbpass")
> or die("Unable to connect to database: " . mysql_error() . "<BR>");
>
> mysql_select_db("dbname");
>
> // IF SUBMIT WAS PRESSED, VERIFY IDENTITY
>
> if ($_POST["submit"]) {
>
> // QUERY DATABASE FOR MATCHING USER/PASSWORD
>
> $result = mysql_query("SELECT * FROM users WHERE uname='$adminname' AND
> upass='$adminpass'")
> or die("Unable to query database: " . mysql_error() . "<BR>");
>
> if (mysql_num_rows($result) <= 0) {
> echo("<BR><CENTER><B>Invalid username/pasword combination. Click <A
> HREF=\"admin.php\">here</A> to try again.</B></CENTER><BR><BR><BR>");
> }
>
> // username & password match
> // begin session...
>
> else {
>
> session_start();
>
> $_SESSION['username'] = "BLACK";
>
> echo("Session id: " . session_id());
> echo("<A HREF=\"index.php\">Index</A>");
>
> }
>
> mysql_free_result($result);
> mysql_close($sq);
> include("incs/footer.php");
> exit();
> }
>
> ?>
>
> "Dung Nguyen" <dung@ucdavis.edu> wrote in message
> news:bumkdj$ric$1@woodrow.ucdavis.edu...> > Mark,
> >> > called.> > > ... once the user leaves the page where session_start() was originally
> >
> > When and where are you calling session_start() ?
> >
> > Just in the Admin.php file?
> >
> > -dn
> >
> >
> > "Mark" <npspam@omas.com> wrote in message
> > news:L8APb.53191$7JB1.9536@news04.bloor.is.net.cab le.rogers.com...> > > After starting a session and assigning data to the session variableright> the> > > $_SESSION['username']), the variable only contains a value on the page> > called> > > session was created on.
> > >
> > > For example, moderators on my site log into their accounts on a page> > values> > > admin.php. Once the username/password have been matched against the> > > in the mysql database, I want to assign the username to
> > > $_SESSION['username'] so it's available on all pages.
> > >
> > > If I print out the contents of $_SESSION['username'] on admin.phpproblem,> > > after they've logged in, it will display their username withoutURL> > but> > > once the user leaves admin.php, $_SESSION['username'] is blank.
> > >
> > > It doesn't seem to matter if I attach PHPSESSID=session_id() to the> or> page> > > not. $_SESSION['username'] is always blank once the user leaves the> all.> > session> > > where session_start() was originally called.
> > >
> > > Does anyone have any ideas on why this might be? Here are my hosts> > > settings from phpinfo() in case they're relevant:
> > >
> > > session.auto_start - Off
> > > session.cache_expire - 180
> > > session.cache_limiter - nocache
> > > session.cookie_domain - no value
> > > session.cookie_lifetime - 0
> > > session.cookie_path - /
> > > session.cookie_secure - Off
> > > session.entropy_file - no value
> > > session.entropy_length - 0
> > > session.gc_maxlifetime - 1440
> > > session.gc_probability - 1
> > > session.name - PHPSESSID
> > > session.referer_check - no value
> > > session.save_handler - files
> > > session.save_path - /tmp
> > > session.serialize_handler - php
> > > session.use_cookies - On
> > > session.use_trans_sid - 1
> > >
> > > I created a the directory /tmp on my webspace, but it didn't help at>> >> > > Any help here would be appreciated.
> > >
> > > Thanks
> > > Mark Liam
> > >
> > >
> >
>
Dung Nguyen Guest
-
Mark #7
Re: Sessions not working
Thanks for your help. I've added session_start() to the top of every page
and it works fine. I was leaving it out because only certain users
(moderators) had information that needed to be stored in sessions. Regular
users don't have any information that required sessions, but I guess it
won't really hurt if everyone uses them.
"Dung Nguyen" <dung@ucdavis.edu> wrote in message
news:bumlh6$2v$1@woodrow.ucdavis.edu...its> Mark,
>
> Web servers are stateless machines. Each URL request, i.e. each page isdefining> own entity. The idea behind session is to provide a mechanism foradmin.php> states. Having said that, the session_start() function called inscreen> is complete once PHP reaches the bottom of the page (admin.php). The
> session information would have been written out to a temporary file. The
> next page the user accesses, e.g. user.php knows nothing of your intention
> to use the previous states unless you tell it too, i.e. via a call to
> session_start().
>
> So at the top of every page you need to call session_start() so that it is
> able to access the information stored in the session.
>
> Hope that helps.
>
> -DN
>
>
> "Mark" <npspam@omas.com> wrote in message
> news:uGAPb.53685$7JB1.45230@news04.bloor.is.net.ca ble.rogers.com...> the> > It's being called only in the admin file, at the top of the page before> $_SESSION['username']> > script outputs anything to the screen. The code I'm using is below
> > (simplified). It starts a session in admin.php, sets> to> > to "BLACK" and then provides a link to index.php. If I follow the link> > index.php, which echos the contents of $_SESSION['username'] to thebecause> > and nothing appears. Index.php does not call session_start againoriginally> only> > I'm only using sessions for specific accounts and the code is set up to> in,> > start a session when a user logs in (only moderators are required to log> > anyone else can read/post without an account).
> >
> > <?php
> >
> > // CONNECT TO DATABASE
> >
> > $sq = mysql_connect("dbname", "dbuser", "dbpass")
> > or die("Unable to connect to database: " . mysql_error() . "<BR>");
> >
> > mysql_select_db("dbname");
> >
> > // IF SUBMIT WAS PRESSED, VERIFY IDENTITY
> >
> > if ($_POST["submit"]) {
> >
> > // QUERY DATABASE FOR MATCHING USER/PASSWORD
> >
> > $result = mysql_query("SELECT * FROM users WHERE uname='$adminname' AND
> > upass='$adminpass'")
> > or die("Unable to query database: " . mysql_error() . "<BR>");
> >
> > if (mysql_num_rows($result) <= 0) {
> > echo("<BR><CENTER><B>Invalid username/pasword combination. Click <A
> > HREF=\"admin.php\">here</A> to try again.</B></CENTER><BR><BR><BR>");
> > }
> >
> > // username & password match
> > // begin session...
> >
> > else {
> >
> > session_start();
> >
> > $_SESSION['username'] = "BLACK";
> >
> > echo("Session id: " . session_id());
> > echo("<A HREF=\"index.php\">Index</A>");
> >
> > }
> >
> > mysql_free_result($result);
> > mysql_close($sq);
> > include("incs/footer.php");
> > exit();
> > }
> >
> > ?>
> >
> > "Dung Nguyen" <dung@ucdavis.edu> wrote in message
> > news:bumkdj$ric$1@woodrow.ucdavis.edu...> > > Mark,
> > >
> > > > ... once the user leaves the page where session_start() waspage> (ie.> > > called.
> > >
> > > When and where are you calling session_start() ?
> > >
> > > Just in the Admin.php file?
> > >
> > > -dn
> > >
> > >
> > > "Mark" <npspam@omas.com> wrote in message
> > > news:L8APb.53191$7JB1.9536@news04.bloor.is.net.cab le.rogers.com...
> > > > After starting a session and assigning data to the session variable> > > > $_SESSION['username']), the variable only contains a value on the> right> > the> > > > session was created on.
> > > >
> > > > For example, moderators on my site log into their accounts on a page
> > > called
> > > > admin.php. Once the username/password have been matched against the
> > > values
> > > > in the mysql database, I want to assign the username to
> > > > $_SESSION['username'] so it's available on all pages.
> > > >
> > > > If I print out the contents of $_SESSION['username'] on admin.php> problem,> > > > after they've logged in, it will display their username without> URL> > > but
> > > > once the user leaves admin.php, $_SESSION['username'] is blank.
> > > >
> > > > It doesn't seem to matter if I attach PHPSESSID=session_id() to the>> > or> > page> > > > not. $_SESSION['username'] is always blank once the user leaves the> > all.> > > > where session_start() was originally called.
> > > >
> > > > Does anyone have any ideas on why this might be? Here are my hosts
> > > session
> > > > settings from phpinfo() in case they're relevant:
> > > >
> > > > session.auto_start - Off
> > > > session.cache_expire - 180
> > > > session.cache_limiter - nocache
> > > > session.cookie_domain - no value
> > > > session.cookie_lifetime - 0
> > > > session.cookie_path - /
> > > > session.cookie_secure - Off
> > > > session.entropy_file - no value
> > > > session.entropy_length - 0
> > > > session.gc_maxlifetime - 1440
> > > > session.gc_probability - 1
> > > > session.name - PHPSESSID
> > > > session.referer_check - no value
> > > > session.save_handler - files
> > > > session.save_path - /tmp
> > > > session.serialize_handler - php
> > > > session.use_cookies - On
> > > > session.use_trans_sid - 1
> > > >
> > > > I created a the directory /tmp on my webspace, but it didn't help at> >> > > > Any help here would be appreciated.
> > > >
> > > > Thanks
> > > > Mark Liam
> > > >
> > > >
> > >
> > >
> >
>
Mark Guest
-
Dung Nguyen #8
Re: Sessions not working
In that case, what you can do is check either their username or privilege
level to determine whether you should start/stop the session for that user.
"Mark" <npspam@omas.com> wrote in message
news:znBPb.54429$7JB1.42719@news04.bloor.is.net.ca ble.rogers.com...Regular> Thanks for your help. I've added session_start() to the top of every page
> and it works fine. I was leaving it out because only certain users
> (moderators) had information that needed to be stored in sessions.The> users don't have any information that required sessions, but I guess it
> won't really hurt if everyone uses them.
>
> "Dung Nguyen" <dung@ucdavis.edu> wrote in message
> news:bumlh6$2v$1@woodrow.ucdavis.edu...> its> > Mark,
> >
> > Web servers are stateless machines. Each URL request, i.e. each page is> defining> > own entity. The idea behind session is to provide a mechanism for> admin.php> > states. Having said that, the session_start() function called in> > is complete once PHP reaches the bottom of the page (admin.php). The
> > session information would have been written out to a temporary file.intention> > next page the user accesses, e.g. user.php knows nothing of youris> > to use the previous states unless you tell it too, i.e. via a call to
> > session_start().
> >
> > So at the top of every page you need to call session_start() so that itbefore> > able to access the information stored in the session.
> >
> > Hope that helps.
> >
> > -DN
> >
> >
> > "Mark" <npspam@omas.com> wrote in message
> > news:uGAPb.53685$7JB1.45230@news04.bloor.is.net.ca ble.rogers.com...> > > It's being called only in the admin file, at the top of the pagelink> > the> > $_SESSION['username']> > > script outputs anything to the screen. The code I'm using is below
> > > (simplified). It starts a session in admin.php, sets> > > to "BLACK" and then provides a link to index.php. If I follow theto> screen> > to> > > index.php, which echos the contents of $_SESSION['username'] to the> because> > > and nothing appears. Index.php does not call session_start again> > > I'm only using sessions for specific accounts and the code is set uplog> > only> > > start a session when a user logs in (only moderators are required toAND> > in,> > > anyone else can read/post without an account).
> > >
> > > <?php
> > >
> > > // CONNECT TO DATABASE
> > >
> > > $sq = mysql_connect("dbname", "dbuser", "dbpass")
> > > or die("Unable to connect to database: " . mysql_error() . "<BR>");
> > >
> > > mysql_select_db("dbname");
> > >
> > > // IF SUBMIT WAS PRESSED, VERIFY IDENTITY
> > >
> > > if ($_POST["submit"]) {
> > >
> > > // QUERY DATABASE FOR MATCHING USER/PASSWORD
> > >
> > > $result = mysql_query("SELECT * FROM users WHERE uname='$adminname'variable> originally> > > upass='$adminpass'")
> > > or die("Unable to query database: " . mysql_error() . "<BR>");
> > >
> > > if (mysql_num_rows($result) <= 0) {
> > > echo("<BR><CENTER><B>Invalid username/pasword combination. Click <A
> > > HREF=\"admin.php\">here</A> to try again.</B></CENTER><BR><BR><BR>");
> > > }
> > >
> > > // username & password match
> > > // begin session...
> > >
> > > else {
> > >
> > > session_start();
> > >
> > > $_SESSION['username'] = "BLACK";
> > >
> > > echo("Session id: " . session_id());
> > > echo("<A HREF=\"index.php\">Index</A>");
> > >
> > > }
> > >
> > > mysql_free_result($result);
> > > mysql_close($sq);
> > > include("incs/footer.php");
> > > exit();
> > > }
> > >
> > > ?>
> > >
> > > "Dung Nguyen" <dung@ucdavis.edu> wrote in message
> > > news:bumkdj$ric$1@woodrow.ucdavis.edu...
> > > > Mark,
> > > >
> > > > > ... once the user leaves the page where session_start() was> > > > called.
> > > >
> > > > When and where are you calling session_start() ?
> > > >
> > > > Just in the Admin.php file?
> > > >
> > > > -dn
> > > >
> > > >
> > > > "Mark" <npspam@omas.com> wrote in message
> > > > news:L8APb.53191$7JB1.9536@news04.bloor.is.net.cab le.rogers.com...
> > > > > After starting a session and assigning data to the sessionpage> page> > (ie.> > > > > $_SESSION['username']), the variable only contains a value on the> > > the
> > > > > session was created on.
> > > > >
> > > > > For example, moderators on my site log into their accounts on athe> > > > called
> > > > > admin.php. Once the username/password have been matched againstthe> > right> > > > values
> > > > > in the mysql database, I want to assign the username to
> > > > > $_SESSION['username'] so it's available on all pages.
> > > > >
> > > > > If I print out the contents of $_SESSION['username'] on admin.php> > problem,> > > > > after they've logged in, it will display their username without> > > > but
> > > > > once the user leaves admin.php, $_SESSION['username'] is blank.
> > > > >
> > > > > It doesn't seem to matter if I attach PHPSESSID=session_id() tothe> > URL> > > or
> > > > > not. $_SESSION['username'] is always blank once the user leaveshosts> > > page
> > > > > where session_start() was originally called.
> > > > >
> > > > > Does anyone have any ideas on why this might be? Here are myat> > > > session
> > > > > settings from phpinfo() in case they're relevant:
> > > > >
> > > > > session.auto_start - Off
> > > > > session.cache_expire - 180
> > > > > session.cache_limiter - nocache
> > > > > session.cookie_domain - no value
> > > > > session.cookie_lifetime - 0
> > > > > session.cookie_path - /
> > > > > session.cookie_secure - Off
> > > > > session.entropy_file - no value
> > > > > session.entropy_length - 0
> > > > > session.gc_maxlifetime - 1440
> > > > > session.gc_probability - 1
> > > > > session.name - PHPSESSID
> > > > > session.referer_check - no value
> > > > > session.save_handler - files
> > > > > session.save_path - /tmp
> > > > > session.serialize_handler - php
> > > > > session.use_cookies - On
> > > > > session.use_trans_sid - 1
> > > > >
> > > > > I created a the directory /tmp on my webspace, but it didn't help>> >> > > all.
> > > > > Any help here would be appreciated.
> > > > >
> > > > > Thanks
> > > > > Mark Liam
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
Dung Nguyen Guest



Reply With Quote

