TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: nizzy
Forum: Advanced PHP Programming 10-02-2008, 06:49 AM
Replies: 3
Views: 2,629
Posted By nizzy
I found my own solution

YES! you can store object instance into session AFTER session initialization.

THE WHOLE trick resides in these lines (requires php v5.1.3):
$reflection_obj = new ReflectionClass($class_name);...
Forum: Advanced PHP Programming 10-02-2008, 04:01 AM
Replies: 3
Views: 2,629
Posted By nizzy
yes, before session

Dear Kalle

Thanks for quick reply. Then my method will not work, because I am trying to store the FooBar class into $_SESSION var AFTER the session is created. I see this is the problem.

Now, how...
Forum: Advanced PHP Programming 10-02-2008, 02:50 AM
Replies: 3
Views: 2,629
Posted By nizzy
storing class instance into session

Do you think SetObject() method will work?



class Session
{
...........
...........

public function SetObject($class_name)
Showing results 1 to 3 of 3

 

All times are GMT. The time now is 06:10 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design