Originally posted by kiLLeR-eyEd_14
View Post
Hiding Session Id
Collapse
X
-
yah bro killer eyed i will buy a 1year webhosting this coming 23 or 24 of july here at makati medyo mahal pero cguro okey naman bka may ma offer ka n mura n webhost jan al0ng manila kita tau i paid u cash or bank? Ok lng bro na pa copy naman ng register password send by email need q kc para iwas pasaway na wapper.. The code work like an angel i try in my wamp server .Thankz...
-
-Ive Got it.. thanks Killer-eyed..Originally posted by kiLLeR-eyEd_14 View Poston every page or file.,to know if session really starts and set.,else return ses expire..
Comment
-
pgka2alam q mer0n na t0pic nyan dto.,search mu na lng..Originally posted by kabooms View Postyah bro killer eyed i will buy a 1year webhosting this coming 23 or 24 of july here at makati medyo mahal pero cguro okey naman bka may ma offer ka n mura n webhost jan al0ng manila kita tau i paid u cash or bank? Ok lng bro na pa copy naman ng register password send by email need q kc para iwas pasaway na wapper.. The code work like an angel i try in my wamp server .Thankz...My Blog: http://jhommark.blogspot.com
My Facebook: http://www.facebook.com/jhommark
My Official Site: http://www.undergroundweb.tk
My Community Site: http://undergroundwap.xtreemhost.com
Comment
-
plz help me to add this code in action=logoutOriginally posted by kiLLeR-eyEd_14 View PostThis is what i've done successfully..
In core.php put this
session_start();
$sid = $_SESSION['sid'];
on top or bottom then in login.php find
$sid = md5($did);
and change it to
$_SESSION['sid'] = md5($did);
$sid = $_SESSION['sid'];
observe it..After defining $_SESSION['sid'] as an md5($did) then define $sid as $_SESSION['sid'] so that it means $sid = $_SESSION['sid'] while the value of $_SESSION['sid'] = md5($sid);
then on every page, you don't need to put something 'cause the session_start() and $sid = $_SESSION['sid'] is already in core.php and core.php is already included on every page..You just need to remove all $sid = $_GET['sid'] and all &sid=$sid..To display if not logged in or session expired i made this code
if(($action != "") && ($action!="terms") && ($action!="gviewfrm") && ($action!="gviewcat") && ($action!="gviewtpc") && ($action!="gforumindx"))
{
$uid = getuid_sid($sid);
if((empty($_SESSION['sid']) OR (!isset($_SESSION['sid'])))
{
put here your codes for ses expire
}
}
then to destroy session, put this on top or bottom of the msg successfully logged out,
unset($_SESSION['sid']);
$_SESSION = array();
session_destroy();
one problm is there m successfully login bt i cant c owner cp also delete option of shout in main page y ownercp option is hide plz fix dis prblmPHP Code:unset($_SESSION['sid']);
$_SESSION = array();
session_destroy();
Comment
-
guest can enter the site if ryt url hummingbird feeder tube urs classic at ursite.com
there is nothing show ur session id expire also this code show error parse error { sign creating prblm
PHP Code:if(($action != "") && ($action!="terms") && ($action!="gviewfrm") && ($action!="gviewcat") && ($action!="gviewtpc") && ($action!="gforumindx"))
{
$uid = getuid_sid($sid);
if((empty($_SESSION['sid']) OR (!isset($_SESSION['sid'])))
{
put here your codes for ses expire
}
}
Comment
-
try using the function isowner($uid) c0z that's also my pr0b and i s0lved it by using thatOriginally posted by kazzin View Postplz help me to add this code in action=logout
one problm is there m successfully login bt i cant c owner cp also delete option of shout in main page y ownercp option is hide plz fix dis prblmPHP Code:unset($_SESSION['sid']);
$_SESSION = array();
session_destroy();
My Blog: http://jhommark.blogspot.com
My Facebook: http://www.facebook.com/jhommark
My Official Site: http://www.undergroundweb.tk
My Community Site: http://undergroundwap.xtreemhost.com
Comment
-
Why do you need to make session protection for lavalair ?? You can make
The same thing can be made for IP too ..PHP Code:$browser[0] = select browser from ..._users;
$nowbrowser = getbrowser();
if ($browser[0]!==$nowbrowser)
{
LOGOUT USER
}
whatmp3.name - search mp3 on mobile
Comment
-
its a not god ideaOriginally posted by shad0w View PostWhy do you need to make session protection for lavalair ?? You can make
The same thing can be made for IP too ..PHP Code:$browser[0] = select browser from ..._users;
$nowbrowser = getbrowser();
if ($browser[0]!==$nowbrowser)
{
LOGOUT USER
}
<?php unlink('World/Europe/Romania.country'); ?>
Comment
-
add islogged($sid)==false OR $uid==0 then ses expireOriginally posted by kazzin View Postguest can enter the site if ryt url hummingbird feeder tube urs classic at ursite.com
there is nothing show ur session id expire also this code show error parse error { sign creating prblm
PHP Code:if(($action != "") && ($action!="terms") && ($action!="gviewfrm") && ($action!="gviewcat") && ($action!="gviewtpc") && ($action!="gforumindx"))
{
$uid = getuid_sid($sid);
if((empty($_SESSION['sid']) OR (!isset($_SESSION['sid'])))
{
put here your codes for ses expire
}
}
Last edited by kiLLeR-eyEd_14; 22.07.09, 23:06.My Blog: http://jhommark.blogspot.com
My Facebook: http://www.facebook.com/jhommark
My Official Site: http://www.undergroundweb.tk
My Community Site: http://undergroundwap.xtreemhost.com
Comment
-
Why to modify the whole script when you can make ip/browser protection ....whatmp3.name - search mp3 on mobile
Comment
-
because....Originally posted by shad0w View PostWhy to modify the whole script when you can make ip/browser protection ....
for example..
i(and many others as well !)
can change IP AND browser faster than you can ban them !
キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
And what if the `hacker` change IP and browser ? They can not use other users session :D ...Originally posted by metulj View Postbecause....
for example..
i(and many others as well !)
can change IP AND browser faster than you can ban them !
whatmp3.name - search mp3 on mobile
Comment
-
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.
Comment
Comment