Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 08:52 am EDT

Geeklog Forums

$_SESSION Array OK?


Status: offline

bcbrock

Forum User
Chatty
Registered: 02/04/03
Posts: 64
working
I'm working on a script where a user can select a value from a drop down menu to view records from a particular fiscal year. The problem is, as they click other links and options, the fiscal year they've selected reverts back to the current year.

I'm considering writing this value into the $_SESSION superglobal, but wanted to check with those who are in-the-know first, to be sure that if I go tinkering with $_SESSION, I won't run into problems with Geeklog as a whole. I found this post where Blaine points out that support for php sessions was being added, so just wanted to double check before I committ myself to this plan of action.

Thank You! Smile
~Brian
 Quote

Tony

Anonymous
You should be able to use it fine. I'd be sure to put a name on the session variable that wouldn't possibly get stepped on by Geeklog (e.g.
Text Formatted Code
$_SESSION['someprefix_fiscal_year'] = 2004;
 


--Tony
 Quote

Benta

Anonymous
happy
Quote by Tony: You should be able to use it fine.


--Tony


Funny, I had _exactly_ the same question as bcbrock today.

Thanks for the reply, Tony!
 Quote

All times are EDT. The time is now 08:52 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content