Forums
This topic is locked
really basic questions
Posted 11 Dec 2004 17:20:46
1
has voted
11 Dec 2004 17:20:46 Rosina Lippi posted:
I'm working with Dreamweaver 2004 MX to create a website for a friend, who is launching an on-line gardening magazine. My html skills are solid, but I had to get far further into mysql and database matters than I wanted to in order to get the security/registration/login pieces set up. It is now working. Mostly.So here's my question. On this site -- on most sites like this -- once you've logged in there's a spot on the page that tells you so. Welcome User, you are logged in. Or: you are not logged in.
What is that? Javascript? Some kind of form? I've spent at least an hour looking through Macromedia's support pages, information pages, developer pages, and otherwise searching, and I can't get this really basic question answered. I was hoping I'd find a nice, uncomplicated package on the Exchange that set it all up, but no such luck.
Any help much appreciated.
Oh and, in case you need to see the site, it's here (until the domain transfers):
barclay.textdrive.com/~cheryll/index.htm
Replies
Replied 11 Dec 2004 17:51:54
11 Dec 2004 17:51:54 Dave Thomas replied:
its called a session.
when someone visits the page who has already registered and may have a cookie in their temp files, so it will say "hi your not logged in etc.."
if it comes up on the page as "Hi John, and welcome"
then that is a session login, that grabs your id from a database and displays your login name accordingly.
dont know anything about mysql really, but its the same principle for most db's.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[SQL]|[Access2000]|[ASP/VBScript]|[XP-Pro]
when someone visits the page who has already registered and may have a cookie in their temp files, so it will say "hi your not logged in etc.."
if it comes up on the page as "Hi John, and welcome"
then that is a session login, that grabs your id from a database and displays your login name accordingly.
dont know anything about mysql really, but its the same principle for most db's.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[SQL]|[Access2000]|[ASP/VBScript]|[XP-Pro]
Replied 11 Dec 2004 18:20:30
11 Dec 2004 18:20:30 Rosina Lippi replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
its called a session.
when someone visits the page who has already registered and may have a cookie in their temp files, so it will say "hi your not logged in etc.."
if it comes up on the page as "Hi John, and welcome"
then that is a session login, that grabs your id from a database and displays your login name accordingly.
dont know anything about mysql really, but its the same principle for most db's.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[SQL]|[Access2000]|[ASP/VBScript]|[XP-Pro]
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Dave, thanks for clarifying the terminology: but now, how do I set this up? Javascript?
its called a session.
when someone visits the page who has already registered and may have a cookie in their temp files, so it will say "hi your not logged in etc.."
if it comes up on the page as "Hi John, and welcome"
then that is a session login, that grabs your id from a database and displays your login name accordingly.
dont know anything about mysql really, but its the same principle for most db's.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[SQL]|[Access2000]|[ASP/VBScript]|[XP-Pro]
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Dave, thanks for clarifying the terminology: but now, how do I set this up? Javascript?
Replied 12 Dec 2004 18:00:38
12 Dec 2004 18:00:38 the GH1 replied:
dont know much about php, but in asp when you login, it passes session variable ie MM_Username and you can query your db on other pages by filtering the subscribers details by MM_Username then show whatever info you want from that person. Maybe similar in php, but i'm not sure <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Hope this helps get you on the right track anyway,
Hope this helps get you on the right track anyway,