Hiding Session Id

Started on the old forum in January 2009 · view the original in the archive · old links redirect here

134 replies · 11,752 views · started 17 years ago · 1 min read

TL;DR · summary of 134 replies
  • -mod_rewrite would not be effective for hiding session IDs as they still need to pass through URLs.
  • -Using dynamic variables like IP or browser information could help prevent session hijacking, but it may not be foolproof.
  • -Adding username and password to the authentication process can strengthen session security by defining both the user and their credentials.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

38 participants
metulj Super moderator Principal · 1,726 posts #101

shad0w wrote: Why to modify the whole script when you can make ip/browser protection ....

because.... for example.. i(and many others as well !) can change IP AND browser faster than you can ban them !🤨

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

shad0w Developer · 119 posts #102

metulj wrote: because.... for example.. i(and many others as well !) can change IP AND browser faster than you can ban them !🤨

And what if the hacker change IP and browser ? They can not use other users session 😀 ...

whatmp3.name - search mp3 on mobile

CreativityKills Lead · 833 posts #103

I dnt think u undastand wot we're saying. Okay to illustrate, use mobile.aolsearch.com to log into a site dat uses dat method of ip/brwsr session validation, tel me if u get past login page or 2pages afta login. You'd get logged out. Why? They change their ip randomly. So does other network providers. They dnt usually use static ips. Therefore it may work 4 u cuz ur network uses static ip bt i can assure ur stubborn ass dat u'l get ppl leaving ur site so fast cuz they r gettn logged owt. But hey u can put ur ads in ur "your session has expired" page so ur visitors can c it often ROFL.

something else Fellow · 2,296 posts #104

but it doesnt work eg: here is a snapshot of 1 of shadows staff members screens: thats why best not to use sessions in urls 🙂

Attachments: ©Dark_SouL~Bestklub.jpg
i0nutzxp Developer · 150 posts #105

something else wrote: but it doesnt work eg: here is a snapshot of 1 of shadows staff members screens: thats why best not to use sessions in urls :)

from where u have that print?:O its a RO chat 😕

<?php unlink('World/Europe/Romania.country'); ?>
shad0w Developer · 119 posts #107

Not everyone can do what something else did... Anyway I have parsword protect owner tools and I download backup of my database every day...

whatmp3.name - search mp3 on mobile

shad0w Developer · 119 posts #108

mobileGIGS wrote: I dnt think u undastand wot we're saying. Okay to illustrate, use mobile.aolsearch.com to log into a site dat uses dat method of ip/brwsr session validation, tel me if u get past login page or 2pages afta login. You'd get logged out. Why? They change their ip randomly. So does other network providers. They dnt usually use static ips. Therefore it may work 4 u cuz ur network uses static ip bt i can assure ur stubborn ass dat u'l get ppl leaving ur site so fast cuz they r gettn logged owt. But hey u can put ur ads in ur "your session has expired" page so ur visitors can c it often ROFL.

In Romania 95% of wap users use Orange Romania. The IP changes only if you disconnect from wap. Vodafone users are disconnected sometimes, but that does not hapen too often... So... In Romania that is a good solution 😛

whatmp3.name - search mp3 on mobile

shad0w Developer · 119 posts #109

I will change all the pages... Is boooring, but is safer... // If i disconnect frow and i go back to the site with last url option (on nokia) , i am still logged in ??? When will I be logged out automatic? Nothing will be added to addonline function???

whatmp3.name - search mp3 on mobile

CreativityKills Lead · 833 posts #110

is dat a question? Anyway im nt beggin u to remove ur ip/brwser ****, im just asking u think out of the box. Wit additional code, u can stil validate a valid user even if ip changed. Its all in ur ability 2 think hard.

shad0w Developer · 119 posts #111

If i disconnect from wap and i go back to the site with last url option (on nokia) , i am still logged in ??? When will I be logged out automatic? Nothing will be added to addonline function???

whatmp3.name - search mp3 on mobile

something else Fellow · 2,296 posts #112

using sessions u will be automatically logged out if you disconnect

shad0w Developer · 119 posts #113

mobileGIGS wrote: is dat a question? Anyway im nt beggin u to remove ur ip/brwser ****, im just asking u think out of the box. Wit additional code, u can stil validate a valid user even if ip changed. Its all in ur ability 2 think hard.

And how can I do that ?? Can you tell me ??

whatmp3.name - search mp3 on mobile

CreativityKills Lead · 833 posts #114

I'l give u a simple algorithm:

in core.php, add 2 d beginn, session_start();

in login.php, after validatn a username n pwd, add $_SESSION['incase'] = md5(uniqueid(rand(),true)); create a column in ibwf ses and when INSERTING d $sid and $ubr into ibwf ses, also associate $_SESSION['incase'] to d $sid e.g INSERT INTO ibwf_ses SET id=$sid, newColumn=$_SESSION['incase'], uid=$uid. . . Then, in islogged function, add sumtin like IF getip() != $storedip { IF !empty($_SESSION['incase']) { $brw = explode("/",$_SERVER['HTTP_USER_AGENT']); IF $_SESSION['incase'] == $storedNewColumnSession && $brw[0] == $storedBrowser { return true; } } return false; }

LIKE I SAID ITS AN ALGORITHM, USE UR HEAD TO CODE.

shad0w Developer · 119 posts #116

If I use your algorithm I still have to modify &amplsid=$sid in every page ??

// I want to use
$sid = md5("Shad0w");

whatmp3.name - search mp3 on mobile

CreativityKills Lead · 833 posts #117

No u dont have to. Basically d script sets a session after logn on d brwser n stores same in db, IF ip check breaks, it checks if d session was set on d brwser, if it matches d database session and if it was actually d same brwser dat set d session thats requesting it...if all those r tru, then it is a valid user. Else break. If i wasnt on mobile i'd code it 4 u.

kiLLeR-eyEd_14 Senior · 382 posts #118

mobileGIGS wrote: I'l give u a simple algorithm:

in core.php, add 2 d beginn, session_start();

in login.php, after validatn a username n pwd, add $_SESSION['incase'] = md5(uniqueid(rand(),true)); create a column in ibwf ses and when INSERTING d $sid and $ubr into ibwf ses, also associate $_SESSION['incase'] to d $sid e.g INSERT INTO ibwf_ses SET id=$sid, newColumn=$_SESSION['incase'], uid=$uid. . . Then, in islogged function, add sumtin like IF getip() != $storedip { IF !empty($_SESSION['incase']) { $brw = explode("/",$_SERVER['HTTP_USER_AGENT']); IF $_SESSION['incase'] == $storedNewColumnSession && $brw[0] == $storedBrowser { return true; } } return false; }

LIKE I SAID ITS AN ALGORITHM, USE UR HEAD TO CODE.

yeh.,he's right..you can do this when someone changes his ip everytime his browser disconnects and connect again..

shad0w Developer · 119 posts #119

I understand mostly of the script... But in logout page i have to put sessiondistroy() ?? And ALL mobile browsers support that?? And if someone disconnects and use last url option is he logged out??

whatmp3.name - search mp3 on mobile

something else Fellow · 2,296 posts #120

mobileGIGS wrote: I'l give u a simple algorithm:

in core.php, add 2 d beginn, session_start();

in login.php, after validatn a username n pwd, add $_SESSION['incase'] = md5(uniqueid(rand(),true)); create a column in ibwf ses and when INSERTING d $sid and $ubr into ibwf ses, also associate $_SESSION['incase'] to d $sid e.g INSERT INTO ibwf_ses SET id=$sid, newColumn=$_SESSION['incase'], uid=$uid. . . Then, in islogged function, add sumtin like IF getip() != $storedip { IF !empty($_SESSION['incase']) { $brw = explode("/",$_SERVER['HTTP_USER_AGENT']); IF $_SESSION['incase'] == $storedNewColumnSession && $brw[0] == $storedBrowser { return true; } } return false; }

LIKE I SAID ITS AN ALGORITHM, USE UR HEAD TO CODE.

a lot of people have problems with storing against ip and browser information due to not being collected by server every time ..... so people having to code it for if (getip() != $storedip|| getip() != ""){ but then your leaving a hole for ghost surfer etc: 😛

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close