panique / mini

Just an extremely simple naked PHP application, useful for small projects and quick prototypes. Some might call it a micro framework :)
1.35k stars 478 forks source link

how to use session?? #231

Closed ikwijaya closed 5 years ago

ikwijaya commented 7 years ago

Dear panique team,

can you produce mini with session or cookies for login access? [my history] iam create other model for user login use class User, then create controller (login) with different header and footer, and redirect first url from index (home) to index (login), working fine for authetication User login. But if i use session_start() within page header login and header home, the authentication User login cannot redirect to home page. Please help me, thanks for your advise. Sorry for my bad english. Sincerely yours, ikwijaya

borzaka commented 5 years ago

I had problems too when using session_start(); in \application\view\_templates\_header.php. So I ended up putting session_start(); into public/index.php

ikwijaya commented 5 years ago

sorry i was move to python :+1: