need help

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
Ind007
Forum Newbie
Posts: 14
Joined: Fri Dec 01, 2006 12:39 am
Location: India

need help

Post by Ind007 »

session registered variables are not passing from one page to another page....

what is the possible reason....

I am using Apache 2.0.5 /PHP5 environment
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

session wasn't passed, session wasn't started, misspelled variable... the list goes on...

post your code.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
User avatar
Ind007
Forum Newbie
Posts: 14
Joined: Fri Dec 01, 2006 12:39 am
Location: India

Post by Ind007 »

I am using PHP expert editor...which is having syntax high lighiting, so there is no mis spelling...
and i used session_start(); in every page.

the registered variable is $_SESSION['user']="somevalue";

when i try to retrieve this variable value in another page it is showing nothing, i mean it is null.

I am sorry for my misleading subject in my first post....i am a newbie.
Last edited by Ind007 on Fri Dec 01, 2006 2:00 am, edited 1 time in total.
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

You still need to show your code.. there has to be some error somewhere, yes even user error.
User avatar
Ind007
Forum Newbie
Posts: 14
Joined: Fri Dec 01, 2006 12:39 am
Location: India

Post by Ind007 »

finally i got it

i made small mistake...

session.save_path="e:/temp"

session.cookie_path=\

now i changed it to

session.cookie_path=/
Post Reply