This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > November 2004 > PHP Session Variables





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author PHP Session Variables
Tron

2004-11-16, 6:18 pm

Hey.

I'm using session variables to track a user and customize their
experience (basically, so they can edit they're own listing, and not
anyone else's).

I decided to piggyback my database filter onto the MM_Username Session
Variable.I'm filtering results based on Email address of user (which is
their login id) like so: Usr_email=Session Variable MM_Username (that's
in the binding dialogue box, not in the code).

It works for a couple of pages that I click through to, but then it
stops recognizing the variable. I've got the pages User Authenticated,
and that's working so the MM_Username variable should still be in
effect, right?

I read the section in the manual about five times, and went through the
User Authentication tutorial at the Dev Center, but they don't really
help in this situation. Is this just not working because I'm running off
a localhost (which has caused problems for a few things before), or am I
doing something wrong? If so, is there a better way to track session
variables?

All I want to do is make sure that when someone logs in as Bill, he
can't go messing with Anne's info. I can post code, if anyone wants to
look at it, though it's just generated by Dreamweaver.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews