[eluser]manash007[/eluser]
when i am write the data in a session it is working fine........
but in case of reading session data first time i am getting the session data...
after first time there is no value in the session...
that is in second time posting the value may be replaced by null....
what would be the reason???????????

[eluser]Derek Allard[/eluser]
Its not that I can't read your code, its that I want to reduce the problem down to only the session so that we can squarely say "the session isn't working". For example, in the code you gave me above, if $user was set to "NULL", then it would be passing a null value, and this would explain the symptoms you see.

In your case above, you are setting a session with the value of $user, but I don't see your user variable defined. I do see a $uname, but don't know where $user is coming from. This is probably the error.

The reason I was trying to get you to reduce down is that you could see that session is working, and focus on why the value isn't getting passed as expected.