Yohanne Posted March 14, 2013 Share Posted March 14, 2013 hi all.. how to put session id into url? like this home.php?myid=9023772811 and it could be happen after login. Quote Link to comment Share on other sites More sharing options...
ignace Posted March 14, 2013 Share Posted March 14, 2013 (edited) Putting the session id in the URL is a bad idea because users tend to copy/paste these links to others or on some publicly visible medium. When someone would click this link they would actually hijack the user's session (they would appear to be the logged in user who copy/past'ed the link). NEVER put the session id in the URL. Edited March 14, 2013 by ignace Quote Link to comment Share on other sites More sharing options...
Yohanne Posted March 14, 2013 Author Share Posted March 14, 2013 OH.. i though it is safe.. and so what sould i do? to make my url look something lots of number =930943i387372xzass0 Quote Link to comment Share on other sites More sharing options...
trq Posted March 14, 2013 Share Posted March 14, 2013 Why do you want your urls to have "lots of numbers" on the end? What exactly do you plan on doing with these numbers? People don't just tack numbers onto urls for no reason. Quote Link to comment Share on other sites More sharing options...
Yohanne Posted March 14, 2013 Author Share Posted March 14, 2013 actually im doing admin page, thats why i need to do something like on other admin page. Quote Link to comment Share on other sites More sharing options...
ignace Posted March 14, 2013 Share Posted March 14, 2013 (edited) Just because you saw another application have numbers on the end of their URL on their admin page, you need them to? Just append rand to your URL's then. $url .= '?' . rand(); Edited March 14, 2013 by ignace Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.