473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Login without cookies

Hi,

does anyone know how to create a login system with PHP that does not use
cookies? I am finding that more and more users seem to be setting their
privacy settings to high, this not accepting cookies.

--
Regards, Caesar.
================================
Jul 17 '05 #1
4 3686
On Sun, 29 Aug 2004 16:55:39 +0200, Cezar wrote:
Hi,

does anyone know how to create a login system with PHP that does not use
cookies? I am finding that more and more users seem to be setting their
privacy settings to high, this not accepting cookies.


http://www.php.net/manual/en/features.http-auth.php
Jul 17 '05 #2
*** CJ Llewellyn escribió/wrote (Sun, 29 Aug 2004 17:40:31 +0100):
http://www.php.net/manual/en/features.http-auth.php


Another option is to use sessions and transmit the session ID in the URL.
As for privacy, that's obviously worse than those innocent cookies but
paranoid uses don't normally have much technical knowledge ;-)

--
--
-+ Álvaro G. Vicario - Burgos, Spain - ICQ 46788716
+- http://www.demogracia.com (la web de humor para mayores de 100 años)
++ «Sonríe, que te vamos a hacer una foto para la esquela»
--
Jul 17 '05 #3
Cezar <ce*****@imail.net.pl> wrote in message
news:<cg**********@atlantis.news.tpi.pl>...

does anyone know how to create a login system with PHP
that does not use cookies?


One way is to assign the user a session ID and pass it between
scripts via POST/GET. If a script does not get a valid session
ID, it must redirect the client to the login page.

Another way is to use HTTP authentication, i.e., sending out
an "Authenticate:" HTTP header.

Cheers,
NC
Jul 17 '05 #4
If you keep the login details in a server-side session then you don't need
to keep any data in a cookie. By default PHP will create a session-temporary
cookie (which exists only in memory, and which gets deleted when the browser
session closes) which contains nothing but "PHPSESSID=<sessionid>", so
unless the user has session-temporary cookies turned off then this will be
used. Alternatively PHP will append the string "PHPSESSID=<sessionid>" to
every URL, but transmitting the sessionid in plain text like this opens up a
security problem.

--
Tony Marston

http://www.tonymarston.net
"Cezar" <ce*****@imail.net.pl> wrote in message
news:cg**********@atlantis.news.tpi.pl...
Hi,

does anyone know how to create a login system with PHP that does not use
cookies? I am finding that more and more users seem to be setting their
privacy settings to high, this not accepting cookies.

--
Regards, Caesar.
================================

Jul 17 '05 #5

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

Similar topics

0
by: konsu | last post by:
hello, i need to implement a secure web site in php and mysql but i have just started looking at php a few days ago, and i would appreciate any advice from the experts. the site, as i said,...
11
by: Ghazan Haider | last post by:
I am posting this for the lack of a better newsgroup, and for the knowledge of people here, and because its only partially OT. We have a bunch of users with their computers at work. There are...
5
by: Simon | last post by:
Hi, I have a Login.php page that logs the user in and out. I has two forms within the page, (depending on what we are trying to do), either one to log in or out. The form calls itself using a...
3
by: Zachary Burns | last post by:
I'm trying to scrape a page that requires me to login to it. I'm not sure if it uses cookies or not to track if I'm logged in, could it be using viewstate? Anyway, can I do this using the...
0
by: Mach Runner | last post by:
I am implementing a secure website using the ASP.NET FormsAuthentication model. I have taken the simplest code examples from MSDN (login.aspx,default.aspx, web.config) but cannot get proper...
10
by: et | last post by:
I have an asp.net program that uses a connection string, using integrated security to connect to a sql database. It runs fine on one server, but the other server gives me the error that "Login...
6
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in...
4
by: =?Utf-8?B?S2lyYW4gS3VtYXIgUGluamFsYQ==?= | last post by:
Hi, I have an SSL Web site that is developed and deployed using in .NET 2.0. Most of the clients are able to login to my website without any issues. Some clients can never login to my web site. At...
1
by: tanya.wang | last post by:
Hi all, We have a site called http://www.mydomainxyz.com/ and our network guy has set up load balancing with multiple IIS servers. We also have a function that allows users to upload photos on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.