How can we do user authentication without using
session/cookies ? For ex:- From page1 accepts user name and
password and need to check in all other pages whether the
user has logged in or not
Answers were Sorted based on User's Feedback
Answer / binoyav
Passing parameters from one page to another page is not a
feasible solution. I think the user authentication can be
done through database. Once the user login to the site, the
application will store the user name and IP address of the
user to one database table. From other pages (by putting ne
common file ) will check whether that IP address exists in
that table.
Is it correct ? Any drawback for this ? Or any other solution ?
| Is This Answer Correct ? | 12 Yes | 3 No |
Answer / master
it is possible by passing the username and password through
the url or using hidden fields if the site contains forms
in all the subsequent pages , else through the url encrypt
the username and password and decrypt the value and check
whether the values passed it same with some predefined
values.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / anand
Hello this is interesting..
It is difficult but need to forward login details to next
page by using forms or url encode.
And in every page include a page to check weather they are
valid or not.
answer anybody if there is another method.
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / sachin
Pass the login credentials to the forms using hidden fields
as well as encrypted using one way hash like md5 with a
server known salt value. Every time the request comes to the
server, it will validate credentials.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / shweta
with the use of serialize function,we can do this
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / yagnesh
when user logged in it will create one txt file on the
server with the ip address of the client machine if and
checks every time when page reload is file exist on the
server or not if not then it will display login page.
simulteneously system will check with the database of last
activity of the perticular ip if that ip has not any
activity withing given time then system will delete that
file....... we can set cron for deleting of the file
| Is This Answer Correct ? | 0 Yes | 2 No |
Tell me what are magic methods?
Explain what are psrs? Choose 1 and briefly describe it?
How do you compare strings in java?
what is the current salary package in India for a PHP & MySQL programmer who has 3 years experience
127 Answers ABC, BLG Logistics, Google, HCL, IBM, Infosys, People Group, PHP, Torque Infotech, V Angelz Technologies, Yahoo,
What is mysql_fetch_object?
Swap two variables value without using third variable in php ?
How does php server work?
at present am learning lamp course sir ..i want to know the carrer prospectus in php ...is there any companies recruiting freshers in chennai ..for freshers how much can i demand as a fresher in php ....?i finished my mca ..please sugggest me to face interview in php asking salary details and all please suggest me how much can i ask as a fresher in php ? and also tel is there any openings in chennai for recruting php freshers send their emails and company info please ? please send ur valuable suggestions to kiranpulsar2007@gmail.com i hope u wil reply to my question thank u guys bye take care see u soon all the best to everyone
What is the Default syntax used in PHP?
What is new keyword in php?
What is the difference between public, protected and private?
What is the full form of PHP?
28 Answers Apple, Nandhini, PHP,