[split] Community Auth - session variables? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7) +--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13) +--- Thread: [split] Community Auth - session variables? (/showthread.php?tid=67650) |
[split] Community Auth - session variables? - oscar1925 - 03-20-2017 How to add session variables so that i can retrieve it in any of my views? RE: [split] Community Auth - session variables? - skunkbad - 03-20-2017 What do you mean by session variables? The session ID? The value of "auth_identifiers"? RE: [split] Community Auth - session variables? - oscar1925 - 02-13-2018 Thanks for the reply Guro, i wish to add some session variables like username, name etc. .... Code: __ci_last_regenerate|i:1518568247;auth_identifiers|s:83:"a:2:{s:7:"user_id";s:10:"1307276232";s:10:"login_time";s:19:"2018-02-14 01:30:47";}"; aside from user_id and login_time how may i able to add some data ? RE: [split] Community Auth - session variables? - oscar1925 - 02-13-2018 what i did to remedy this is..... i add some codes to Auth_model.php (line 40 to 50 up) to be a able to add some data to the session table... Code: // User table query bad coding... may i know how to add session data in simple way? RE: [split] Community Auth - session variables? - skunkbad - 02-14-2018 I tell you what ... I hate using sessions for anything I don't have to, and if your user is logged in, you can get all that stuff from the database. There's no reason to put it in the session. If you do NEED the session to have that data, then it's kind of up to you as the developer to make decisions on how to integrate that into your app. Advice on this kind of thing is beyond the scope of Community Auth support. |