Closed Thread Icon

Topic awaiting preservation: sessions cookies...????? Pages that link to <a href="https://ozoneasylum.com/backlink?for=11979" title="Pages that link to Topic awaiting preservation: sessions cookies...?????" rel="nofollow" >Topic awaiting preservation: sessions cookies...?????\

 
Author Thread
Blacknight
Bipolar (III) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

posted posted 01-06-2002 20:16

ok my problem : i am making a page were the members have a own page for their detail....my problem here is that everything is read out of a databease so the detailpage should be genereated by the server or the asp script notices wich name hase been cklicked and youst displayes the detail of that member
My site : noframes not shure wat technik to use or wich technik works cookies sessions....????

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 01-06-2002 20:36

just use a variable to get the name.
in your link tag write:

... href="detail.asp?member=membername" ...

then in the detail.asp site you can use that variable to select the member from the db.

SELECT * (or whatever you need) FROM table WHERE username=membername

sorry, i dont know the asp-syntax, but i hope you can imagine what i mean.

Blacknight
Bipolar (III) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

posted posted 01-06-2002 21:51

i think i get you thanks joust one question does this work with nonframe sites?

Blacknight
Bipolar (III) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

posted posted 01-06-2002 21:58

but wat you wrote is wehen the links are statik ..the links are alsow read out of the database and can be changd by the adminscript ??..??

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 01-06-2002 22:40

yes. you dont need frames.

for generating the list, just use a simple for-loop.
as i already said, i dont know asp, but in php it would look like this:

$result = mysql_query("SELECT username FROM table");
while($srow = mysql_fetch_array($result)) {
echo "<a href=details.php?membername=$srow[0]>$srow[0]</a><br>
}

this is totally untested. it just came into my mind this way...

bitdamaged
Maniac (V) Mad Scientist

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

posted posted 01-06-2002 22:58

Just to cover most bases I've been working on something similar and I'm using a combination of cookies and sessions. The cookie method is easier but can be a problem for more cookie concious users.

I'd also use some sort of encryption for the Session ID variable, makes things a lot more secure. Using session ID's for sessions is actually easier without frames because you just need to make sure the ID is passed to one page. It is more work though because you need to make sure ALL links to a session protected area need to get and pass the session ID.



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

Blacknight
Bipolar (III) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

posted posted 01-07-2002 16:27

thanks for the tips il try them and tell you if it worked

« BackwardsOnwards »

Show Forum Drop Down Menu