Use custom session in fatfree framework

66 views
Skip to first unread message

Muhammad Shahzad

unread,
Apr 3, 2017, 5:12:55 AM4/3/17
to Fat-Free Framework
Hi,

I want to use custom session in my fatfree application.
I have already running a custom php website here: http://www.example.com and I have installed fat free app under a subdirectory like
  http://www.example.com/fatfree-app, can you please let me know how I can use my parent site( http://www.example.com) session under http://www.example.com/fatfree-app.

In my parent site I'm setting session in this way:
               $_SESSION['access'] = TRUE;
                $_SESSION['userid'] = $objUser->userid;
                $_SESSION['role_id'] = $objUser->role_id;
                $_SESSION['team_id'] = $objUser->team_id;
                $_SESSION['uname'] = $objUser->uname;
                $_SESSION['name'] = $objUser->name;

Thank you in advance.

bcosca

unread,
Apr 3, 2017, 5:20:58 AM4/3/17
to Fat-Free Framework
session_set_cookie_params

Muhammad Shahzad

unread,
Apr 3, 2017, 5:24:18 AM4/3/17
to Fat-Free Framework
Please can you explain where should I sue this function?

On Monday, 3 April 2017 14:20:58 UTC+5, bcosca wrote:
session_set_cookie_params

Muhammad Shahzad

unread,
Apr 3, 2017, 5:39:46 AM4/3/17
to Fat-Free Framework
How can I disable built-in session functionality in fat-free framework?

ikkez

unread,
Apr 3, 2017, 6:10:06 AM4/3/17
to Fat-Free Framework
please see https://fatfreeframework.com/3.6/quick-reference#JAR

adjust the settings on your needs, then just start using the SESSION. If the same session cookie from your parent application is loaded, you should be able to share the same session content with both apps.
Reply all
Reply to author
Forward
0 new messages