Sessions or MySQL recall

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheServant
    Recognized Expert Top Contributor
    • Feb 2008
    • 1168

    Sessions or MySQL recall

    I wanted to get some advice on whether I should have all of my variables for my site (online game so it's a lot) available as session variables, or if I should have the more constant ones (only required for a few select pages) recalled from a MySQL database on every page they're required?

    Also, opinions on cookies?

    If I am not clear, let me know!
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    I always prefer to use the $_SESSION array where possible. MySQL db would be a good place for data that is sensitive and not frequently used.

    Ronald

    Comment

    • TheServant
      Recognized Expert Top Contributor
      • Feb 2008
      • 1168

      #3
      Thanks again ronverdonk, this can be closed.

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        You are welcome. See you next time.

        Ronald

        Comment

        Working...