Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Integrating login_user to my home page..
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Integrating login_user to my home page..

 Post Reply Post Reply
Author
degergio View Drop Down
Newbie
Newbie


Joined: 09 July 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote degergio Quote  Post ReplyReply Direct Link To This Post Topic: Integrating login_user to my home page..
    Posted: 09 July 2006 at 3:16pm
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 ??
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.