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 |
|
|
|
|
 |
|