A simple code

Started on the old forum in July 2011 · view the original in the archive · old links redirect here

1 reply · 516 views · started 15 years ago · 1 min read

2 participants
ACIDCORE Junior · 30 posts #1

$testbr = mysql_fetch_array(mysql_query("SELECT browserm FROM bp_users WHERE id='".$uid."'")); $ownbr = $testbr[0];

if($x != "") { if((islogged($sid)==false)||($uid==0)||($ubrowser!=$ownbr))

im using this code to prevent logging in a single account using two or more browsers at the same time..but my problem now is, some browsers give me a session expired error in the login page..can someone help me modify this?ill use this in my wapdesire based script..

i0nutzxp Developer · 150 posts #2

On if((islogged($sid)==false)||($uid==0)||($ubrowser! =$ownbr)) check the 2 vars with var_dump

<?php unlink('World/Europe/Romania.country'); ?>

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