SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard PHPycho's Avatar
    Join Date
    Dec 2005
    Posts
    1,200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Whats the problem when ..

    Hello forums !!
    I am curious about some questions.
    what happens when the session name and the $_POST vars or $_GET vars names are same.
    ie
    PHP Code:
    $_SESSION['sess_name'] = "xyz";
    $_GET['sess_name'] = "abc" 
    Thanks in advance to all of you.

  2. #2
    SitePoint Zealot glowdot's Avatar
    Join Date
    Jun 2007
    Location
    Santa Monica, CA
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nothing special, if you have register_globals off (which you should).

    A horror show if you have it turned on.

    You used to be able to determine the order variables would be set with variables_order (can you still?). So if it was set to "EGPCS" (which I believe was the default), then ENV, GET, POST, COOKIE and SERVER get set in that order (which is the most logical, to make sure SERVER variables aren't overridden by GET or POST).
    Advertise on Glowfoto
    banners as low as $25/month, text ads $10/month
    Share 10 million impressions per month!


Bookmarks

Posting Permissions

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