Page 1 of 1

Twisted Sessions..... :twisted:

Posted: Sun Aug 10, 2003 10:04 am
by andrewt
Can anyone tell me how does sessions in PHP works?

does all sessions that is being created with :

Code: Select all

<?php
      $a = session_start();
      $_SESSION["var"] = 0
 ?>
Does this use cookies?

Is there anyway that I can create session variables without using cookie
or hidden form element?

I created a page using session vaiables ... $_SESSION("var"] ...
thats works on Linux Mozilla brower but it crooked on IE...

Thanks for reading,
Andrew
:!:

Posted: Sun Aug 10, 2003 10:13 am
by skateis2s
http://us3.php.net/session

Not to familiar with that way

I use plain old

session_start();
session_register();
session_destroy();

Posted: Sun Aug 10, 2003 10:57 am
by JAM
Does this use cookies?
No. You have $_COOKIE for those.

http://se.php.net/manual/en/language.va ... efined.php
Is there anyway that I can create session variables without using cookie
or hidden form element?
Yah, by using $_SESSION.

About the failure on IE... Can you give us more info of what kind of error pleas.

Posted: Sun Aug 10, 2003 2:31 pm
by m3rajk
session goes first to cookies, then to get, then to post (if avaiilable)

you can change that to some degree in the settings.

Posted: Mon Aug 11, 2003 9:09 am
by daven
viewtopic.php?t=6521

Sticky about sessions.