[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] [PHP] Serialisering af objekt i session



David skrev:
Ole Kofoed Hansen wrote:

Jeg tror dit problem skyldes, at sessionen indlæses før klassedefinitionerne. Det advarer dokumentationen i alt fald om: http://dk2.php.net/session

Klassedefinitionen har hele tiden stået før sessionsstarten....

Har du måske session.auto_start slået til? At starte en session to gange giver kun en synlig fejlmeddelelse, hvis man har sat den til også at vise E_NOTICE.

Jeg kan simpelthen ikke finde nogle eksempler på hvordan man ville tildele en af pladserne i $_SESSION array'et et objekt. Kan du hjælpe?

Det er såmænd lige som enhver anden variabel. Se min kode.

For at sikre at vi taler om det samme er her min eksempelkode indtil videre (med session_register()):

Jeg lavede min egen eksempelkode, løseligt baseret på din. Det virkede uden problemer. Se det i funktion og med kildekode på http://tuxino.dk/~ole/objsess/

Med venlig hilsen

Ole


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2008-02-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *