renathy Posted October 17, 2010 Report Share Posted October 17, 2010 (edited) Login skripti ir visi līdzīgi, taču daži glabā sesijā tikai username, citi kaut kādu mainīgo "user_is_loged = 1", mēdz glabāt arī user_id utt... Vēl mēdz glabāt session_id() vai pat md5(session_id)... Kāda labākā pieeja? Edited October 17, 2010 by renathy Quote Link to comment Share on other sites More sharing options...
Just_Learning Posted October 17, 2010 Report Share Posted October 17, 2010 Es personīgi glabāju username. Tas ļauj bez citu mainīgo ieviešanas jebkurā lapas vietā iegūt username. No var arī id, ja ir jāizvada informācija konkrātam lietotājam, bet to pašu arī pēc username var dabūt. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.