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



How can we do user authentication without using session/cookies ? For ex:- From page1 accepts user..

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

How can we do user authentication without using session/cookies ? For ex:- From page1 accepts user..

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

How can we do user authentication without using session/cookies ? For ex:- From page1 accepts user..

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

How can we do user authentication without using session/cookies ? For ex:- From page1 accepts user..

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

How can we do user authentication without using session/cookies ? For ex:- From page1 accepts user..

Answer / shweta

with the use of serialize function,we can do this

Is This Answer Correct ?    1 Yes 0 No

How can we do user authentication without using session/cookies ? For ex:- From page1 accepts user..

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

Post New Answer

More PHP Interview Questions

Tell me what the difference between the 'bitwise and' operator and the 'logical and' operator?

0 Answers  


what is the diference between php4 and php5

2 Answers   Tavant Technologies,


This is regarding file uploading. 1. Who will be the owner of the uploaded file ? 2. What permission you will give for an uploaded file ? 3. What is mean by user, group and others and what kind of permission you will give for each user and explain the reason?

1 Answers   IBM,


How to create database connection and query in php?

0 Answers  


when we submit any string in single inverted comma('abc') with get or post method,we will get exact string with single inverted comma('abc')by using $_REQUEST[]. But it is giving (\'abc\'). so anybody please help me to remove that slash,therefore i will get exact string...

2 Answers  






Tell me when a conditional statement is ended with an endif?

0 Answers  


How can we change the value of a constant?

0 Answers  


Explain what are the three classes of errors that can occur in php?

0 Answers  


Does php need html?

0 Answers  


What are the two main string operators?

0 Answers  


we store and display scores of users in different games. In MySQL, records are stored as tuples (user-id, game-id, score). Now we need to support ranks of users, i.e., each user should be informed of his current rank in the community. The challenge is to come up with the best way to store the data in MySQL so that the requirements are efficiently met.

1 Answers   IndiaTimes,


How do you end a function in python?

0 Answers  


Categories