Re: Would appreciate thoughts on session management

From: Date: Tue, 12 Nov 2002 07:55:02 +0000
Subject: Re: Would appreciate thoughts on session management
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-123943@lists.php.net to get a copy of this message
I posted this yesterday: > Specifically, I'm considering using hidden fields for persistent object > properties because (1) I don't want cookies to be an issue, (2) I prefer not > to have session IDs appear in a URL, and (3) I prefer not to use require a > database just to store persistent properties. After Justin and Ernest straightened me out, I went back to the drawing board and came up with a method that I call Invisible GET. Let's say my page is at <http://www.getsome.com/>. When I want to change the month (for example), I... (1) Open <http://www.getsome.com/submit.php?month=3& target=http://www.getsome.com/>. (2) In submit.php script, I throw all $_REQUEST variables (except "target" and "PHPSESSID") into $_SESSION variables, and... (3) ...redirect to $_REQUEST['target'] via header(). I've sure I've invented something that nobody's done before. :^P This method feels about perfect. Users won't be seeing or bookmarking garbage-filled URLs, and I'm not using lots of hacky stuff to achieve it. I wish I could generate submit.php on the fly, though -- I'm trying very hard not to pollute the web folder with anything that I don't have to, and file creation/deletion is very expensive since I have to do it via FTP. Any ideas on this one? -- Charles Wiltgen

« previous php.general (#123943) next »