Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,662 Times in 2,631 Posts

    use_trans_sid question

    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'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • #2
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Denver, Colorado USA
    Thanked 339 Times in 331 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.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts