Jump to content

Global Variables


Recommended Posts

I've often wondered about this.I use $_SESSION to store data I need to carry from page to page. I was wondering if this is technically correct, or if there's a better way to do it?I never thought it'd do any harm because I have all the $_SESSION data destroyed when the user signs out, so I thought "no biggie." But the curiosity kills me.Is there actually a technically correct way to carry data page to page or is what I'm doing the way to do it?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...