Reply to Re: userialize bug?

Your name:

Reply:


Posted by Harris Kosmidis on 09/10/05 11:26

Ken Robinson wrote:
> Harris Kosmidis wrote:
>
>>Hello, I use php4.4.1 and when a user log in I use a class which stores
>>some info for the user. I serialize the class in a session variable.
>>I later on read the session var and unserializd to check for certain
>>user info.
>
>
> Since all information that is stored in session variables is
> automatically serialized, you don't have to serialize it yourself.
>
> Try just storing the class without doing the serialize and retrieve it
> without doing the unserialize and see what happens.
>
> Ken
>

I don't quite undrstand. What I want is to use the same class (with the
same vars filled in upon login) in many pages. That's why I use session
vars and serialize.
Is there a limit on how many bytes a SESSION var can store? (though my
data are less than 5Kb). And why doesn't this fail in php4.2?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация