/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] session variables are being dropped

I am having the worst time trying to figure this out, but here is what happens:
I log in, it works, I can view everything while being logged in, their are only two links that I can’t view. It will log me out if I click on them. Everything is in the same file as well (user.php). Try it out: [url]http://photoshopshowdown.d-top.org[/url]

Step 1.
Login top right
[B]ID: [/B]demo
[B]pass: [/B]demo

Step 2.
Click on either (top right)
[U]Users Online: #[/U]
or
[U]Total Users: #[/U]

Step 3.
Click on [B]My Home[/B] (1/4 – 1/2 down the page on the left)
You will now be logged out.

You can click on everything else without this happening, but you just can’t click on those two links for some reason.

The links are at the bottom of the doccument.

When they are clicked, it goes to about the middle of the doccument where the case’s are:
case “users”:
and
case “onlineusers”:

[upl-file uuid=7e12faaf-4f6d-4c70-ad3d-11e21517166f size=8kB]user.txt[/upl-file]

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @The_Little_Guy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...