Depends on your security needs, but you might want to access some content only if a session if really set. By really set, i mean as a session you can check each time using $_SESSION (in PHP)
A session is only set on loading, which means if you have a login form (session is empty), you have no choice but to reload the page. No big deal, you just have a login page that reloads to the index page if login/pass process went ok. If not, index redirects to login. Otherwise, you'll find yourself asking long/pass each time you need to access a content on the server, or have to implement some tricky server-side access token (like Facebook does for its API) Remi Le 20 févr. 2013 à 11:40, runback <[email protected]> a écrit : > if (!loggedIn()) of course (i.e. if NOT logged in) > > > -- > You received this message because you are subscribed to the Google Groups > "iPhoneWebDev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/iphonewebdev?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/iphonewebdev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
