473,890 Members | 1,971 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3705
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.ne ws.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 "Authentica te:" 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=<ses sionid>", so
unless the user has session-temporary cookies turned off then this will be
used. Alternatively PHP will append the string "PHPSESSID=<ses sionid>" 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.new s.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
1681
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, will have a login/logout functionality, and no access will be allowed to any pages (except for the login page) without login. i have read on various authentication tactics on the web and decided to:
11
4892
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 reports that the users need, which could be in html, php, asp, jsp, whatever. Now I am trying to eliminate the login window entirely. In an html request, the client (firefox, ie, etc) sends the clients hostname, IP, a bunch of other stuff, but...
5
2976
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 post method and either logs the user in our out given the information from the form. but every pages use sessions and cookies, if the user is successfully logged in then the cookies and session values are updated, (as well as MySQL).
3
1613
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 HttpRequest and HttpResponse methods? I didn't see anything on google groups about this that was of any help. Does anybody have a C# snippet that might put me on the right path? Zack
0
2221
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 behavior on my machine. As an unauthenticated user, I navigate to the website http://localhost/XXX. global.Authenticate_Request considers sending default.apsx but cannot find any authentication cookie in the Context object, so the request is...
10
4525
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 failed for user "NT AUTHORITY/ANONYMOUS LOGON". Why would this be? There is no reason it should even be trying to login to using NT Authority/Anonymous login. The IIS Server is set to turn off anonymous logins, and use integrated security, and my...
6
3366
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 the past in other places, and while the help was much appreciated, it seemed everyone just wanted to 'theoretically' explain how to do it, but when I tried to do it myself, I couldn't login. I want to simply pass the email address and password to...
4
1437
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 first, I thought they were entering wrong passwords, but that was not the case, because when I try to log them in using firefox, it worked fine. I have tried all kinds of settings in IE, I event uninstalled IE7 and tried it, but in vain. Has...
1
3743
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 our website. Recently we found that doing load balancing will cause the upload function not workable sometimes and we came up with a plan by creating a specific domain (let's say http://upload.mydomainxyz.com/) and linking it to our primary web...
0
9812
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
11212
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10446
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
9614
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
5832
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6032
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4655
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4255
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.