473,378 Members | 1,510 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,378 software developers and data experts.

cookies and secure authentication

Hello,

The ISP I am using uses PHP 4.1.2 which does not seem to support $_SESSION
variables (i.e. it seems they are broken). So I am doing cookie based
authentication as follows: I set a cookie with the user's username
to keep track of the user. But this is bad because the user can
simply change the cookie from their web browser and set the
name of another user and thus change that other user's data
this way. That's not good, and not secure. People already
hacked my site, and I've had no more than 1,000 visitors.

Luckyly, I back my database quite often. ;-) :O)

What I plan to do, is send the user another encrypted
cookie. However I do not want to just hide the function that encrypts
from the user. I want to use a public function and a private
encryption key on my file system. And I need to implement it
in PHP. What's the best quick and easy but secure way?

Thanks!!!

Neil
Jul 17 '05 #1
0 1270

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

Similar topics

4
by: Joey Powell | last post by:
Hello, I originally configured my application to use persistent cookies in error. Now, I need to find a way to disable those cookies. I have tried changing usernames and passwords for all of the...
5
by: anony | last post by:
Hi, I have a site that uses forms authentication to secure the directory. The site behaves as expected when viewed externally... if I close the browser and attempt to access it again, I get...
6
by: Amit Agarwal | last post by:
How do you turn off cookies for one page in your site?
2
by: Chris... | last post by:
I have an application that works just fine under normal conditions. But... When I run it through a "SSL Consentrator" (From Array Network), it starts to send me several (Request) cookies with the...
2
by: Brian Shannon | last post by:
Currently I manage user login for our intranet through session variables. I am in the process of converting this to forms authentication using a sql2000 DB. I have a few users that need there...
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...
2
by: pv_kannan | last post by:
I recently found out that my authentication cookies are not expiring even though I have set the persist property to false. As a result, users are able to access the secure websites with indifferent...
3
by: ast3r3x | last post by:
I'm trying to implement the protocol used at http://www.cse.msu.edu/~alexliu/publications/Cookie/cookie.pdf to create cookies that can't be forged. I got everything working, except I have run into...
3
by: =?Utf-8?B?QW5keQ==?= | last post by:
Hi, I'm having issues with what I'm *sure* is a simple problem. Basically having a problem passing a cookie between two sites. On Site A you sign in, and create a cookie with the users ID in it...
2
by: Larry Bates | last post by:
I'm struggling with a project using mechanize and cookies to screen scape a website. The site requires a client created cookie for authentication. Below is the code I'm attempting to use with the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.