sessions...

Location of the Videos
Post Reply
User avatar
Torniquet
Posts: 869
Joined: Sun Aug 02, 2009 6:18 am

sessions...

Post by Torniquet »

Is it possable to check the session isset in an include rather than typing the whole thing out every time at the top of the page?

and just add like incluce "sessioncheck.php"

if there is no session set, redirect them back to the index page. but if there is leave it blank so it can continue?
New Site Coming Soon! Stay tuned :D
User avatar
Noctrine
Posts: 928
Joined: Thu Apr 23, 2009 9:57 pm

Re: sessions...

Post by Noctrine »

I'd rather do it in a function, but yes.
Jesse Dorsey
ProjectANI - Lead Developer Person
http://about.me/jessedorsey
User avatar
Torniquet
Posts: 869
Joined: Sun Aug 02, 2009 6:18 am

Re: sessions...

Post by Torniquet »

how would you do it through a function?

wouldnt that mean using an include to get the function from another page?

never worked with functions on here lol.
New Site Coming Soon! Stay tuned :D
User avatar
Noctrine
Posts: 928
Joined: Thu Apr 23, 2009 9:57 pm

Re: sessions...

Post by Noctrine »

Jesse Dorsey
ProjectANI - Lead Developer Person
http://about.me/jessedorsey
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: sessions...

Post by hallsofvallhalla »

functions can be used right in a page but if you dont know how to copy and paste then I suggest a include. I often make a shell of each page then build on that shell. The shell might be called shell.php where it already has all the includes and .css sheet attachment, then you save as the file you want and build on it. When you need the next page just open shell back up and save as again.
User avatar
Torniquet
Posts: 869
Joined: Sun Aug 02, 2009 6:18 am

Re: sessions...

Post by Torniquet »

ye i do the same thing (but to be honest i didnt think of adding it onto my shell as i used the shell for my login / register pages)

I SHALL UPDATE MY SHELL :D :p

seems a much simpler idea lol.
New Site Coming Soon! Stay tuned :D
Post Reply

Return to “Older Browser MMO Videos”