CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 new session

Print topic Send  topic

Author Message
Phil
Posted: 05/21/2003, 1:07 AM

Hello, I want to make a new session with a random number. I want to use this session for my online shop, so the visitors doesn't have to login.

Like: Session("memberid") = int(rnd * 1000000)

PHP/MySQL and CC2.0

thanks for helping, still learning..

Phil
Ivo
Posted: 05/21/2003, 5:15 AM

set_session("memberid", (date("d-m-Y G:i:s")"));

When you put this in the index page in the open event you have a session with a date and time. It works.

But my question is, when the user go back to that page he get a new session that is not what i want. Can someone help me?

I want it like this:

if (session memberid!=null) {
set_session("memberid", (date("d-m-Y G:i:s")"));
}
else {
sesssion memberid="memberid";
}

PHP4.0/templates , MySQL, CC2
guest
Posted: 05/21/2003, 1:22 PM


   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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