473,769 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1350
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.goo glegroups.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("Visite dPageA") = "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
1246
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. here is the declaration. std::map<char, std::map<char, CWordFrequency> > baseMap; Now I can assign a pointer to the inner map, but I cannot assign a pointer to my class without actually copying the second map into memory. I'm
0
2432
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 <fo:layout-master-set> <fo:simple-page-master margin-left="0.5in" margin-right="0.5in" page-width="8.5in" margin-bottom="0.5in" master-name="Section-odd-page" margin-top="0.5in" page-height="14in"> <fo:region-after region-name="xsl-region-after-odd"
47
5289
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 work. I want to output a bit pattern from base 10 input. All I get is a zero after the input...I've looked over the code but can't see the problem...any ideas? /* display the bit pattern corresponding to a signed decimal integer */
3
3760
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 class. If is attached I want to perform some action. How can I access custom attributes from an HttpModule? I have to pass a target to the System.Attribute.GetCustomAttribute() call to attempt to retrieve the attached attribute. I tried to access...
3
1454
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 m_CurrentNodeId = string.Empty; public string CurrentNodeId
6
10423
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 group by using a two dimensional array. <form name=msgs>
4
9058
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 NavigateUrl='Search.aspx?page=base&amp;searchid=<% Eval("sequence")%>' ..... As you can see I am trying to pass a QueryString evaluated at runtime. All the other Evals of DataFields in the Repeater are working just fine. However this NavigateUrl is resolving as...
12
3028
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 = ValidationType.Schema Even though the webServiceNamespace value above is set to an intranet address, I keep getting this error:
9
2225
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 articles but I am not sure how the code should be for inserting each article? Here is the xml schema and below that is the button_click function I have wrote in C#. <xs:element name="PO"> <xs:complexType> <xs:sequence> ...
0
9416
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
9849
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
8861
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...
1
7393
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5433
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3948
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
3551
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2810
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.