CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Session Problem, please help me

Print topic Send  topic

Author Message
Ivo
Posted: 05/22/2003, 4:14 AM

In the page properties of my index.php page I have a open event:
set_session("guestsession", date("Y-m-d G:i:s"));

The script works good, when you go to the index.php you get the session, I can use it on al the other pages of my website.

But the problem is when the visitor turns back to the index.php page. Then he gets a new session. How can I solve this problem?

Thanks for helping!
Ivo
Henrik
Posted: 05/22/2003, 10:15 AM

Change the code to
if (get_session("guestsession")=="") set_session("guestsession", date("Y-m-d G:i:s"));

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.