Closed Thread Icon

Topic awaiting preservation: Login / Users Online (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12473" title="Pages that link to Topic awaiting preservation: Login / Users Online (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Login / Users Online <span class="small">(Page 1 of 1)</span>\

 
AT
Bipolar (III) Inmate

From: Louisville, KY, USA
Insane since: Aug 2000

posted posted 10-16-2002 21:31

Hey all, got a question for ya but first some background.

I'm wanting to create a formatted HTML page, where that
will collect usr/passwd query against the DB and allow/deny
entry to a protected area depending upon the credentials etc...
That seems easy enough, but if they are in fact allowed in I'd
like to know it, I'd like to know what page they are on only within
this protected area...

What would I need to do for this?
Those who would be tracked already have profiles that I could add on to...

I was thinking this would involve sessions, but I don't know since I'm a newbie...

thanks

Red Ninja
Bipolar (III) Inmate

From: Detroit, MI US
Insane since: Mar 2001

posted posted 10-17-2002 15:47

Are you saying that you want to keep tabs on people? Or you saying, figuratively, that you want to know where they are, but you mean just only letting them in to certain pages according to their user rights? Or do you mean real time, you want to SEE what they are doing?

If it's the first, I would say that you would just keep a database on the pages that are being viewed, like normal. Simply counting how many times a page has been looked at is not a big deal. So counting how many times a specific user has looked at a particular page is just an extension of that.

If it's the second, depending on the person and their style of code, you're probably, in my opinion and style, being that I have no better experiences, going to want to use sessions, as you said. (Run on?) Also not a big deal.

If your talking about the latter, I ain't got a clue. That's well beyond MY means.

genis
Paranoid (IV) Inmate

From: Dallas, TX
Insane since: Aug 2002

posted posted 10-17-2002 16:06

I think he wants to know what page they are on, until they log out.

He wants to see what user1 is looking at and what user2 are looking at... and when user1 goes to another page he wants to see what page they are now on.

I've often thought about doing this... something of a real-time tracking statistics. But I'm not focusing strictly on registered users who have logged in.... so ip tracking would be needed.

For your deal, I think only sessions would be needed... it's kind of how forums keep track of what people are on. But in your case I think you'd put a bit of code in each page you want to know they are on that takes that persons username from the session and updates a DB with their name and whatever page they are on.

Then make a tracking page that pulls that info from the DB.
Sounds simple in theory, eh?

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 10-17-2002 18:21

This essentially are the two main things sessions are used for. Check out phpbuilder and devshed for some tutorials.



.:[ Never resist a perfect moment ]:.

[This message has been edited by bitdamaged (edited 10-17-2002).]

AT
Bipolar (III) Inmate

From: Louisville, KY, USA
Insane since: Aug 2000

posted posted 10-18-2002 04:13

Thanks guys... and yes, genis is totally right on...

Right now I have a form that validates against a DB, it then allows them in if they're 'OK' and starts a session...
I even have the session echoing to verify it's ok... BUT... I don't know about these things, and what I've read thus far haven't helped me a great deal...

How do I pull, lets say the username out of that session? I've registered the vars, username, pass, ip etc but just don't know how to get them out, or put them to use once they are in there!

This is what I'm doing, I have a main page where they log in to... that then allows them to go to about 10 diff framed pages, the pages that need authorization will have like a session # in the addy, so the links would be like index.php?s=PHPSESSID etc...

will that work, or am I doing that wrong? or could it be done that way?
I'm trying to get this done before tomorrow night at 7pm, it's now 10:13pm arge!

later

genis
Paranoid (IV) Inmate

From: Dallas, TX
Insane since: Aug 2002

posted posted 10-18-2002 22:31

hmmm... looks like you still have a lot to learn AT...

have you read the documentation yet at php.net?

That would be your best bet to start you out.
Then you can follow that up with tutorials at webmonkey.com, sitepoint.com, phpbuilder.com, or others.
And maybe some books... if you're into those... I've never liked them because they're usually out of date on their subject matter by the time they get to me.

AT
Bipolar (III) Inmate

From: Louisville, KY, USA
Insane since: Aug 2000

posted posted 10-20-2002 08:00

Yeah genis, thanks...

Anyhow, I did all I was needing to do... Everything works like a charm...

later

« BackwardsOnwards »

Show Forum Drop Down Menu