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

Accessing web page in sequence

Hi there,
I have three web pages (A,B,C). I need to prevent users accessing page
B and C without accessing A. What would be the best way to achieve this
rule?
Many Thanks
Niju

Nov 19 '05 #1
3 1331
Depending on how critical accessing A before B and C is,
you could always check the server variable HTTP_REFERER
on all three pages and make sure it equals what you expected.

HTTP_REFERER can be spoofed if someone wanted to
go to the lengths of writing their own scripted browser sessions.

So, as long as you don't care/don't think someone would
bother with that, then I suspect this will do.

You could also utilize cookies to track which pages
they've been on and act accordingly.

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.masterado.net

Earn $$$ money answering .NET Framework
messageboard posts at EggHeadCafe.com.
http://www.eggheadcafe.com/forums/merit.asp

"niju" <di**************@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi there,
I have three web pages (A,B,C). I need to prevent users accessing page
B and C without accessing A. What would be the best way to achieve this
rule?
Many Thanks
Niju

Nov 19 '05 #2
The more robust way would be to store state info in the database that knows
where the user is in these 3 steps. If they go to a step beyond where they
should be, redirect them back to where they should.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi there,
I have three web pages (A,B,C). I need to prevent users accessing page
B and C without accessing A. What would be the best way to achieve
this
rule?
Many Thanks
Niju


Nov 19 '05 #3

If it is a simple scenario with only three web pages involved , the
easiest would be to set a Session Variable from page A and check it in B &
C.. Session("VisitedPageA") = "TRUE" or some thing..

Sreejith

"Brock Allen" wrote:
The more robust way would be to store state info in the database that knows
where the user is in these 3 steps. If they go to a step beyond where they
should be, redirect them back to where they should.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi there,
I have three web pages (A,B,C). I need to prevent users accessing page
B and C without accessing A. What would be the best way to achieve
this
rule?
Many Thanks
Niju


Nov 19 '05 #4

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

Similar topics

11
by: Juicer_X | last post by:
Hello, I have some code that I'm working on, the problem isn't that it doesn't work it's that it's too slow. I have a class that holds my homemade class within an std::map, within an std::map....
0
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
47
by: fb | last post by:
Hi Everyone. Thanks for the help with the qudratic equation problem...I didn't think about actually doing the math...whoops. Anyway... I'm having some trouble getting the following program to...
3
by: Michael Iantosca | last post by:
I have a custom attribute that I attach to certain pages in my application and I want to inspect each page request as it is made to see if the custom attribute is attached to the underlying page...
3
by: spmm# | last post by:
Hi! Could someone please help me with the following; I have a WebControl that basically looks like this: public class LeftMenu : System.Web.UI.WebControls.WebControl { private string...
6
by: Chuck Anderson | last post by:
My knowledge of JavaScript is limited. I learn from example and then adapt those examples to suit my needs. I have stumped myself on this one. I have a form with checkboxes that I want to...
4
by: John Kotuby | last post by:
Hi all, I am using a Repeater in conjunction with a SQLDatasource and SQL Server. One of the controls in the repeater is a HyperlLink as follows: <asp:HyperLink...
12
by: Doug | last post by:
I'm trying to access a schema file as such: Dim settings As XmlReaderSettings = New XmlReaderSettings() settings.Schemas.Add(webServiceNamespace, schemaFileName) settings.ValidationType =...
9
by: turnips11 | last post by:
Hi All, I am trying write a small web app which inserts a purchase order through an xml schema that I have exposed through a web service(using Biztalk 2004). I have that the PO can have many...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.