Session Variables

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
User avatar
softsolvers
Forum Commoner
Posts: 75
Joined: Fri Feb 13, 2004 4:26 am
Location: India

Session Variables

Post by softsolvers »

Hello Friends
Althows i had already discussed this topic here,but i donot got the proper solution,my problem is that i had created the session variable in the first page of my application and i want to use this variable in the rest of the pages.by default the php.ini havee the path session.save_path=c:\php\sessiondata
But when i make this path dynamic i.e. changee to " .\" the session variable are not retrieved ,the reason of doing so is taht my isp has this path in their php.ini ,then the application is not running.
Can u suggest me what path i should give to the session so that project should run properly.
With Regards
Softsolvers
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

If you created the session variables on the first page, then you can access those same session variables on your other pages by putting session_start() at the top of the code.
User avatar
softsolvers
Forum Commoner
Posts: 75
Joined: Fri Feb 13, 2004 4:26 am
Location: India

Post by softsolvers »

Well Friend I had told u that initially too i had discussed this in this forum,the code is running well while i am setting session.save_path=c:\php\sessiondata it means that i am starting session on the new page.Plz go to my problem again
Post Reply