Welcome to the RaGEZONE - MMORPG development forums.

Cookie REµDIRECTION FIXED 50 %

This is a discussion on Cookie REµDIRECTION FIXED 50 % within the Habbo Tutorials forums, part of the Habbo Hotel category; Hello Everyone. I have do tests Go in: inc/class.core.php Find CheckCookies() Under: PHP Code: $_SESSION [ 'set_cookies' ] =  true ;  ...

LyncusMU
Results 1 to 7 of 7
  1. #1
    Member
    Rank
    Newbie
    Join Date
    Feb 2011
    Posts
    44
    Liked
    6

    Cookie REµDIRECTION FIXED 50 %

    Tabo Hotel
    Hello Everyone.

    I have do tests


    Go in: inc/class.core.php

    Find CheckCookies()
    Under:

    PHP Code:
    $_SESSION['set_cookies'] = true
    Add :

    PHP Code:
    $_SESSION['page-redirect'] = $_SERVER['REQUEST_URI']; 
    Before
    PHP Code:
    header("Location: " WWW "/security_check.php"); 
    The Code on security_check
    PHP Code:
    $redirMode 'me';

    if (isset(
    $_SESSION['page-redirect']))
    {
        
    $redirMode $_SESSION['page-redirect'];
        unset(
    $_SESSION['page-redirect']);

    But there is a problem
    I want go to /profile, i have cookies but i am redirected in
    /me after security-check

    Thank you if you can help me :)

  2. HostKey.com: Unmetered Dedicated servers in the Netherlands
  3. #2
    MEHHREKHwhgfkehrkgthregir
    Rank
    Member +
    Join Date
    Sep 2011
    Location
    υηιтє∂
    Posts
    907
    Liked
    299

    Re: Cookie REµDIRECTION FIXED 50 %

    Mind explaining...?

  4. #3
    Monster Member
    Rank
    Member
    Join Date
    May 2009
    Location
    Manchester
    Posts
    197
    Liked
    29

    Re: Cookie REµDIRECTION FIXED 50 %

    Pointless?

  5. #4
    Look at me now!
    Rank
    Member +
    Join Date
    Apr 2010
    Location
    Hablow
    Posts
    1,175
    Liked
    127

    Re: Cookie REµDIRECTION FIXED 50 %

    What the hell is this???

  6. #5
    PHP, HTML5, CSS3, JS, C#
    Rank
    Alpha Member
    Join Date
    Jun 2010
    Location
    The Netherlands
    Posts
    1,812
    Liked
    1010

    Re: Cookie REµDIRECTION FIXED 50 %

    Quote Originally Posted by azaidi View Post
    What the hell is this???
    This is a help thread

  7. #6
    Overlord of RZ
    Rank
    Administrator
    Join Date
    Dec 2000
    Location
    /home/ragezone/
    Posts
    29,466
    Liked
    11907

    Re: Cookie REµDIRECTION FIXED 50 %

    to stop cookie hijack/stealing or whatever by the looks.

  8. #7
    Azure subscription
    Rank
    Subscriber
    Join Date
    Dec 2011
    Location
    єαятн
    Posts
    1,704
    Liked
    255

    Re: Cookie REµDIRECTION FIXED 50 %

    It's for when someone logs in, stops the login from re-directing itself because of a loop.

 

 

Posting Permissions

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