473,663 Members | 2,933 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to set user logon session and validate

Hi,

I want to find out how do I display the user who logon to the webpage,
such as, Welcome, xxxx! Also how do I validate against my user table
in MySQL database whether the user is an existing user or new user.

Will appreciate any information.

Thanks.
Jul 17 '05 #1
1 2562
"xo55ox" a écrit le 08/12/2003 :
Hi,

I want to find out how do I display the user who logon to the webpage,
such as, Welcome, xxxx! Also how do I validate against my user table
in MySQL database whether the user is an existing user or new user.

Will appreciate any information.

Thanks.


You'll need a form for the user to fulfill typically User and Password.
Check this values against your DB values.
If OK use Session or Cookie to store an ID and display the user name.
If not display "Guest" or whatever even an "New user register here"
page :)

--
Have you read the manual?
http://www.php.net/manual/en/

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
2460
by: | last post by:
Please help. After a number of wrong turns and experiments I need advice on login management system to secure our web pages without inconveniencing our visitors or our internal staff. What I need: A system whereby the user only has to register ONCE and he will have automatic entry to ANY page without havinto to RE-LOGIN even if he comes in
6
1760
by: - Steve - | last post by:
I'm using Forms Based Authentication. I've written my code so that when a user does something but has timed out, it gracefully logs them out and asks them to log back on. I do this with . . Session.Abandon() Response.Redirect("logon.aspx")
5
1164
by: Andrew | last post by:
Hi, friends, I keep wondering if there is a better way to verify a user. Now, in my asp.net app, each time a user signed in, I saved his/her userID in Session object. In each following pages, I check if this userID exist in Session. If yes, I consider it is a valid user, otherwise, I ask this to log in again. But, I wonder if there is a better, affordable, easy way to validate a uer? Any ideas, reference papers? Thanks.
2
1500
by: John | last post by:
On my web app I require a user to log in so I can validate them. At times I'll be sending emails out for a reporting page in the web app, How can I have the user goto the link I sent to them after they log in and get validated? example: I send http://www.mycaresales.com/reports.aspx now when they click that link it will take them to the logon page, they get validated login then they see the first page of my web app, once they log in I...
9
15517
by: webrod | last post by:
Hi all, how can I check a user/password in a LDAP ? I don't want to connect with this user, I would like to connect to LDAP with a ADMIN_LOG/ADMIN_PWD, then do a query to find the user and check the password. The thing is I can't access the password attribute to compare with the user's password provided.
4
10191
by: Simon Gare | last post by:
Hi all, below is an insert statement on an asp page that stores the date and time that a driver logged on, what I need is to check that they are now already logged on fields are SQL Server 2000 ID int DRIVER_NO int
2
13424
by: =?Utf-8?B?Q2hyaXM=?= | last post by:
Hi, I am using a win32 function, LogonUser, to impersonate a user across a WCF service. I have noticed that everytime I call this function, a new logon session is created for that user, meaning that multiple calls yields multiple sessions. I cache a WindowsIdentity object that represents the user so that I can call the Impersonate method whenever I need to without creating a new session, but I really need to be able to log the user off...
33
11841
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon (NT_AUTHORITY\SYSTEM). I understand that when the service starts, no user may be logged in, but that's ok, as the app I am monitoring can only be run by a logged in user. Do I need to use WMI to get the user context of Explorer.exe or is there a...
3
5037
by: =?Utf-8?B?QXhlbCBEYWhtZW4=?= | last post by:
Hi, we've got a strange problem here: We've created an ASP.NET 2.0 web application using Membership.ValidateUser() to manually authenticate users with our website. The problem is: If the user has the "User must change password" flag set in Active Directory, ValidateUser() always returns false if that user wants to log in.
0
8437
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8348
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8778
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7375
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5660
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4351
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2003
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1759
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.