Welcome Guest, Not a member yet? Register   Sign In
The session "userdata" is always set to "Errors 404" ...
#1

[eluser]pesho_h_k[/eluser]
Hi, guys.

I have this problem - whenever I set some session variables via

$this->session->set_userdata( 'var_name', 'var_value' );

but on another page, where I have to use this session variable - it's always set to "errors 404" ... I mean - the string "errors 404".

I've never met something like this ... it's very embarrassing.
I tried the native session, but the problem still persists. Also, when I dump the $_SESSION array right after the session_start - it already contains this. (But when I dump it right after I set it - it's the correct value.)

And one more thing - I made a simple php script, just with one if-else, that sets the session var and later uses it - and it's OK there - with the $_SESSION array only.
(Could the problem be that session save path is not set? ... locally everything is OK, and locally the save path is set.)

PS: I tried setting more than one variable, only the one I want is wrong on another pages. It's value is coming from the url, with some modifications ... but I don't think that this is the problem, cause when I dump it right after the setting - it's OK there.


Messages In This Thread
The session "userdata" is always set to "Errors 404" ... - by El Forum - 11-27-2010, 04:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB