Welcome Guest, Not a member yet? Register   Sign In
weird sessions problem
#1

[eluser]AtlantixMedia[/eluser]
Hello,

I would really appreciate if someone could help me out with this:

I have a table where I store error messages which are then retrieved by a function, stored in a session cookie, and retrieved once again by the controller for showing.

Code:
$url = 'whatever';
$Msg = $AdminMsg[$code]['AdminMsg_Msg'];    
$Tmr = $AdminMsg[$code]['AdminMsg_Timer'];

$str = $Msg . '|' . $Tmr . '|' . $url;
$CI->session->set_userdata('msg', $str);

now for some messages, this works perfectly. for others, it doesn't, meaning the $str is not successfully stored by set_userdata. for example, the msg

"Your optional info has been changed.<br />
You will now be redirected to your account page"

is among those that don't work when it gets assigned to $Msg directly from the db table array. However, if I do this:

Code:
$Msg = "Your optional info has been changed.<br />
You will now be redirected to your account page";

it works perfectly. can someone shed some light on this? I'm totally lost. thanks


Messages In This Thread
weird sessions problem - by El Forum - 01-03-2008, 04:27 AM
weird sessions problem - by El Forum - 01-03-2008, 06:00 AM
weird sessions problem - by El Forum - 01-03-2008, 06:19 AM
weird sessions problem - by El Forum - 01-03-2008, 12:41 PM
weird sessions problem - by El Forum - 01-03-2008, 02:01 PM
weird sessions problem - by El Forum - 01-03-2008, 02:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB