How about these Sessions?

35 views
Skip to first unread message

Richard Catto

unread,
Feb 13, 2017, 10:14:16 AM2/13/17
to Fat-Free Framework
I have some questions about sessions that I haven't been able to find answers for in the documentation.

1. Does fat free framework automatically create a default session, even if you don't explicitly instantiate one via the built-in Session class?

2. How does the fat free session object allow us to manage php sessions? there seems to be a mismatch between methods in the Session class and php session functions

ved

unread,
Feb 13, 2017, 12:14:57 PM2/13/17
to Fat-Free Framework
Hi,
 
1. Does fat free framework automatically create a default session, even if you don't explicitly instantiate one via the built-in Session class?

AFAIK, no unless you call one of the session handlers or try to get or set a session variable
 

2. How does the fat free session object allow us to manage php sessions? there seems to be a mismatch between methods in the Session class and php session functions

No special handling just for sessions is needed. You can use the same methods as for most other framework variables. For example:

$f3->set('SESSION.var', $val); // same as $_SESSION['var'] = $val;

Reply all
Reply to author
Forward
0 new messages