Jump to content

PHPSESSID showing in url


r-it

Recommended Posts

i hav a problem with my website, the thing is when my page loads, it shows the session id in the url, i donno y this is happening, but its something like this: www.example.com?PHPSESSID=ce6462759be0d3584927cff7a8092bee. i'm afraid an attacker might use this to attack me, how would i go about not having it show there. it only shows the first time, after that, it's gone.
Link to comment
https://forums.phpfreaks.com/topic/26569-phpsessid-showing-in-url/
Share on other sites

i dont have control of the php.ini file. my host doesn't allow me to, so i did something like this:

[color=red]
<?php
ini_set('session.use_cookies', 1);
ini_set('session.use_only_cookies', 1);
session_start();
?>[/color]
and i store that as sess.inc

if i were to add this line:
ini_set('session.use_trans_sid', 0);

would all be well, and what does it mean
One would suspect that if a commercial web server does not give you access to php.ini, they will also restrict your ability to dynamically change the settings that would be in that file, since this would be equivalent to having access to it...

What are the consequences of someone reading your session id from an http get?  Could php flag and reject a request from a session id that was established from a different ip?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.