Hi all,
i have a website and i installed WWF to /forum folder to use this software.
i want to add a login_user to my homepage with a check. (if visitor is already a logged in member show member settings etc. or visitor isnot logged in show username password form)
i have read a lot of posts about this subject on this forum. i have tried the function_member_API and the other way include file="forum/common.asp"
1 - when i use the first way (function_member_API) it works properly, i also edited the logoff_user.asp to response.redirect "../mysitedefaultpage.asp".
but some problems occurs when user logs off from forum screen then goes to main site default page user is seem like not logged off and still sees user settings menu.
and i used the my own login form and i set the db connection to tblAuthor. here are my codes:
login_screen.asp
<%if Session ("USER") <> "" and Session ("PASSWORD") <> "" Then
call uyemenu
elseif Request.Cookies ("USER") <> "" and Request.Cookies ("PASSWORD") <> "" then
call uyemenu
else
call girisform
end if
%>
..... my form codes ....
login_control.asp
<!--#include file="security.asp"-->
<!--#include file="connection.asp"-->
<%Response.Buffer=True
kadi = scrty(Trim (Request.Form("kadi")))
sifre = scrty(Trim(Request.Form("sifre")))
hatirla = Request.Form("hatirla")
set uye_giris = Server.CreateObject("ADODB.Recordset")
sql="Select * From tblAuthor Where Username='"&kadi&"' and Password='"&sifre&"'"
uye_giris.Open sql,baglanti,1,3
If not uye_giris.EOF Then
if remember="yes" then
Response.Cookies("USER") = kadi
Response.Cookies("USER").Expires = now+500
Response.Cookies ("PASSWORD") = sifre
Response.Cookies("PASSWORD").Expires = now+500
Session ("USER") = kadi
Session ("PASSWORD") = sifre
Session ("online") = "yes"
Response.Redirect "default2.asp"
else
Session ("USER") = kadi
Session ("PASSWORD") = sifre
Session.TimeOut = 60
Session ("online") = "yes"
Response.Redirect "default2.asp"
end if
else
Response.Redirect "default2.asp?mesaj=error"
end if
%>
and user always sees an error message despite the true username and password.
2 - when i use #include file = "forum/common.asp" an error occurs about database path in common.asp...it means when i include the common.asp from another folder common.asp doen't find the database path from this folder...
i know this was large and boring post and also forgive me for my english..i hope someone understands me and helps me..
i want to use WWF and WWF's members on my portal..please help me..what is the main cookie and session names of WWF ??