Welcome Guest, Not a member yet? Register   Sign In
problem with escape and objects in sessions
#1

[eluser]helle[/eluser]
hello,

fyi: i installed ecko-sessions, which i like quite much by the way.

i try to put an object into the session. the problem is my object after serialization (by native php function serialize) looks something like this:
Code:
search_parameters|s:244:"O:16:"SearchParameters":1:{s:28:"SearchParametersparameters";a:1:{s:8:"location";O:8:"stdClass":2:{s:11:"communities";a:6:{i:0;i:4;i:1;i:10;i:2;i:2032;i:3;i:1066;i:4;i:538;i:5;i:618;}s:18:"selected_provinces";a:3:{i:0;i:2;i:1;i:3;i:2;i:4;}}}}";

but after the call
Code:
$this->CI->db->escape($session_data);

its been cut and left behind is this :-(
Code:
'search_parameters|s:244:"O:16:"SearchParameters":1:{s:28:"'

can anybody help me?

thanks and regards
helle


Messages In This Thread
problem with escape and objects in sessions - by El Forum - 06-03-2010, 06:45 AM
problem with escape and objects in sessions - by El Forum - 06-03-2010, 07:56 AM
problem with escape and objects in sessions - by El Forum - 06-03-2010, 08:28 AM
problem with escape and objects in sessions - by El Forum - 06-03-2010, 01:20 PM
problem with escape and objects in sessions - by El Forum - 06-04-2010, 01:42 AM
problem with escape and objects in sessions - by El Forum - 06-04-2010, 02:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB