Welcome to Geeklog, Anonymous Sunday, September 01 2024 @ 12:37 am EDT
Geeklog Forums
$_SESSION Array OK?
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!
~Brian
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 Smile](http://www.geeklog.net/images/smiles/icon_smile.gif)
~Brian
11
10
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.
--Tony
Text Formatted Code
$_SESSION['someprefix_fiscal_year'] = 2004;--Tony
12
7
Quote
Benta
Anonymous
![happy happy](https://www.geeklog.net/forum/image_set/moods/happy.gif)
Quote by Tony: You should be able to use it fine.
--Tony
--Tony
Funny, I had _exactly_ the same question as bcbrock today.
Thanks for the reply, Tony!
12
10
Quote
All times are EDT. The time is now 12:37 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