Twisted Sessions..... :twisted:

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
andrewt
Forum Newbie
Posts: 11
Joined: Fri Aug 08, 2003 8:18 am
Location: Sydney, Australia

Twisted Sessions..... :twisted:

Post 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
:!:
User avatar
skateis2s
Forum Commoner
Posts: 37
Joined: Fri Aug 08, 2003 7:22 am
Location: colorado

Post by skateis2s »

http://us3.php.net/session

Not to familiar with that way

I use plain old

session_start();
session_register();
session_destroy();
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post 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.
User avatar
daven
Forum Contributor
Posts: 332
Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:

Post by daven »

viewtopic.php?t=6521

Sticky about sessions.
Post Reply