Results 1 to 8 of 8
Nov 14, 2012, 12:05 #1
- Join Date
- Nov 2003
- Columbus, OH
- 67 Post(s)
- 2 Thread(s)
Session object serializtion, why?
I've been doing some reading and I've seen a lot of people stating that you must serialize an object before storing it in a session.
$user->setName("Kyle"); $_SESSION['userData'] = serialize($user);
I've found it difficult to find supporting documentation though. Why do we need to serialize before storing the object in a session?
Should these perhaps be avoided due to possible performance issues?Kyle Wolfe