Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: use_trans_sid question
07-05-2007, 04:49 PM #1
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,650 Times in 2,619 Posts
First, this isn't a question of what it is or how it works, lol.
I'm more curious as to if anyone knows how it works in php. As in, what does the engine do to parse the passing of SID into the urls? I'm curious as I want to eliminate my use of Session id passing in my urls with my custom session script, but still have it automatically append (including differentiation between ? and & choice) to the url. The best I've come up with so far is the use of regexp with a templating engine, however, this does seem to be a little too intensive for what I want, easily increasing the loadtime by 0.5-3 seconds just to match the links. PHP builtin session seems to be much faster.
Any ideas as to what they do to perform this, and if so, can I manipulate the same proceedures (crosses fingers for a non final class )PHP Code:
header('HTTP/1.1 420 Enhance Your Calm');
07-05-2007, 06:09 PM #2
- Join Date
- Oct 2006
- Denver, Colorado USA
- Thanked 302 Times in 294 Posts
For what purpose have you written your own session handling? There are only so many different kinds of wheels that need to be invented.
If this is to provide your own session data storage engine, you should look at session_set_save_handler() http://php.net/session_set_save_handler to register your own storage functions but use PHP's built in session handling, which would include all of the built in transparent SID handling as well.If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.