Ask a Question related to PHP Development, Design and Development.
-
NotGiven #1
can you use sessions to ensure the user visited a previous page? can a sessions be easily spoofed?
NotGiven Guest
-
CGI::Sessions : Deleting expired sessions
Hi, I use CGI::Sessions to save the sessions into MySQL. The problem is, if the user just close the browser windows without logging off, I can't... -
Multiple Sessions on a Page
Hi, I am having a web site using windows authentication (basic). After the verification of credentials, a session is started. Within the... -
Database sessions and file sessions
Can database sessions and file system sessions co-exist on the same server. I have 2 applications that use sessions. One uses the standard php... -
Relationship between IIS Sessions and ASP.NET Sessions?
Ken, I did some testing after I posted this message. I set my IE settings for cookies to Always Prompt (even session cookies) to see what was... -
[PHP] using SESSIONS to store page 2 page variables
I think it's OK since users needs to be authenticated. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 ... -
somaBoy MX #2
Re: can you use sessions to ensure the user visited a previous page? can a sessions be easily spoofed?
"NotGiven" <noname@nonegiven.net> wrote...
: [nothing]
1. don't post your entire question in the subject line
2. don't multipost
3. You can encrypt session vars with an md5() hash, for example. This will
make spoofing a lot more difficult.
..soma
somaBoy MX Guest
-
Jochen Daum #3
Re: can you use sessions to ensure the user visited a previous page? can a sessions be easily spoofed?
Hi!
On Thu, 20 Nov 2003 00:02:25 +0100, "somaBoy MX" <none@nonesuch.net>
wrote:
I think its not necessary, as only already md5'ed session id gets>3. You can encrypt session vars with an md5() hash, for example. This will
>make spoofing a lot more difficult.
transported.
HTH, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
[url]http://sourceforge.net/projects/phpdbedittk/[/url]
Jochen Daum Guest
-
kafooey #4
Re: can you use sessions to ensure the user visited a previous page? can a sessions be easily spoofed?
On Wed, 19 Nov 2003 13:10:21 -0500, "NotGiven" <noname@nonegiven.net>
wrote:>
Use $_SESSION["HTTP_REFERER"]
The above server variable will tell you the page they arrived from.
You commonly use it in a script page to return to the form that
submitted towards it.
kafooey
- [email]kafooey@nospam.yahoo.co.uk[/email]
- [url]http://www.pluggedout.com/blog[/url]
kafooey Guest
-
Jonathan #5
Re: can you use sessions to ensure the user visited a previous page? can a sessions be easily spoofed?
Hi,
I agree, but to answer the question: yes you could use sessions to check if> 1. don't post your entire question in the subject line
> 2. don't multipost
> 3. You can encrypt session vars with an md5() hash, for example. This will
> make spoofing a lot more difficult.
a page was previously viewed. You could on one page initialize the session,
on the next page (the one that should be viewed before going on) set a var
in the session:
$_SESSION['pageviewed'] = true;
And on the third page you could check if this var is set:
if ($_SESSION['pageviewed']!=true) { die("Cheater!"); }
Remember you have to do a session_start on every page you use a session and
it should be done before any output is send to the browser.
Bye,
Jonathan
Jonathan Guest



Reply With Quote

