Activity Stream
48,167 MEMBERS
61594 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5
  1.     
    #1
    Member

    Default [help] ID sessions in url, you now some?

    Need to do an function to detect and clean sessions from urls.
    Beter way i guess are by regex

    Session example:
    URL?s= 123gdggdtetft241ytf1ytf4oht5rfde
    URL?sid= 123gdggdtetft241ytf1ytf4oht5rfde

    ?[s|sid]=[0-9a-z] {32}

    Please if you know other kind of sessions post them.

    any help, suggestion are always welcome.
    jomasaco Reviewed by jomasaco on . [help] Detect session on URL Need to do an function to detect and clean sessions from urls. Beter way i guess are by regex Session example: URL?s= 123gdggdtetft241ytf1ytf4oht5rfde URL?sid= 123gdggdtetft241ytf1ytf4oht5rfde ?= {32} Please if you know other kind of sessions post them. Rating: 5


  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Use the preg_match() function with Regex and it'll grab the string and put it into an array for you.

    Do not use the eregi set of functions for pattern matching, they're deprecated.

  4.     
    #3
    Member
    yap, are that
    preg_replace('/\bs=[0-9a-z]{32}&\b/i' ,"", $url)

    but more kind of session's, the aim are clean url's to be unique


  5.     
    #4
    Member
    Do you actually want the session id's appended on the URL?
    You can try setting session.use_trans_sid to 0 and session.use_only_cookies to 1 inside your php.ini.

    If you don't have access to your php.ini you can try adding it into a .htaccess file like this:
    php_value session.use_trans_sid 0
    php_value session.use_only_cookies 1

    ^Adapt this to your hosting environment and see how it works. Also make sure your PHP temp-folder is writable.

  6.     
    #5
    Member
    Jueki isn't that.

    each url shold be unique.
    wath happen for most ddl's if you pass an url whit session they accept, and you can send same url everyday.

    my aim are remove the session from url.
    already get the 2 examples above but i guess are more

    i chose badly the topic title.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Detect and Block Phishing Attempts
    By Daniel in forum Webmaster Resources
    Replies: 7
    Last Post: 3rd Nov 2011, 08:31 AM
  2. How to detect keylogger and destroy it ?
    By shufol in forum Technical Help Desk Support
    Replies: 7
    Last Post: 27th Jan 2011, 05:49 PM
  3. How to Detect Overselling
    By l0calh0st in forum Hosting Discussion
    Replies: 30
    Last Post: 12th Dec 2010, 11:20 PM
  4. [HELP] Detect Referrer and select theme
    By WaReZ in forum Technical Help Desk Support
    Replies: 2
    Last Post: 20th Nov 2010, 12:22 AM
  5. Webcam session with To0 :P
    By CyberJ37 in forum General Discussion
    Replies: 40
    Last Post: 22nd Dec 2009, 09:20 AM

Tags for this Thread

BE SOCIAL