473,606 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Blocking the address bar using sessions

1 New Member
I have created a login page.User shouldn't be able to move to the next page until all the contents are filled...but, when there is no content in the form, and if i give the link to the next page directly in the address bar its going, but it shouldn't...so, i need to block the address bar. Can anybody tell me how to block it using SESSIONS...
Aug 7 '18 #1
2 2040
zmbd
5,501 Recognized Expert Moderator Expert
Can you post your code?
Remember to format it using the [CODE/] formatting tool.

You can replace specific URLs with something generic when you post the code.
Aug 7 '18 #2
Rabbit
12,516 Recognized Expert Moderator MVP
You can't block the address bar with PHP. You need to check if they've logged in before loading the rest of that page. Redirect them to another page if they haven't logged in yet.
Aug 7 '18 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

16
2415
by: | last post by:
At the moment I am getting the following Expired Warning if a user logins into a secure page and attempts to press the 'back' button: Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the...
5
2010
by: frothpoker | last post by:
Guys, I have a couple of issues which I am hoping you can provide guidance on... First one:- Is there any way to retain the $_POST values when a user navigates between pages without using <form method = 'post'> I want to be able to track the user from one page to another to provide customised content. I could make all navigation buttons as forms but
5
1703
by: mankolele | last post by:
Hi all. I dont know if there is some configurations which has to be done to be able to use sessions coz I have the iusername and password for a person to log in from the database and now edited it to use sessions says wrong entry.Then trying to register new member also it does not go to the database.Am I missing something here. Thanx in advance
1
1136
by: Ken Loomis | last post by:
Hello: I've been happily generating pdf files with fpdf for a long time. I just switched from hhttp authentication to sessions, and now pdf generation fails in IE but not in Foxfire. Does anyone know the fix for this? Thanks,
3
2232
by: hemashiki | last post by:
hi i cant pass a same variable to multiplepages... while passing variables in sessions it shows warning and it doesn't pass to multiple pages here the coding which i hve used Registration.php <? session_start(); session_register("username"); $username=$_POST;
4
10244
by: kk5151 | last post by:
Hi, Would like to learn and know how to sort the ip address using perl script? For example: 172.27.32.200 172.19.32.100 10.1.1.60 192.20.30.133
2
1262
by: CharlesHawk | last post by:
HI i am working on a Project where i have to send a string using Sessions to the next page this is working gud for now But i can convert session to a string the .ToString(); and the Convert.ToString(.....); is not workin I am using Web Matrix . Please Help me ASAP. tanx
1
1184
by: boorama | last post by:
Hi all, I am new to php and trying to desing a booking system. the problem I have is how to retrive the session variable to use in a query. the user logs in with a reference number, I pass the number to the next page to display details that are specific to that user. I am using sessions.
5
1544
by: dipperdan | last post by:
Hi, I'm trying to use sessions to create a login system to administer a website - add new info to database,etc but i'm running into some problems. The first page login.php seems to work okay, it authenticates the user then takes them to the next page update_db.php but when i get to this page, it seems all the session data is lost :icon_conf login.php <?php session_start(); // we must never forget to start the session $errorMessage =...
3
14253
by: nse111 | last post by:
I use PHP sessions to pass a value from one page to another. In my 1st page I pass a value called 'id' to my 2nd page using a hyperlink. explained: <a href="abc.php?id=<?php print"$image_id";?>"></a>
0
8010
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8433
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
8084
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
8300
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
6761
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
5461
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
3922
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
3969
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1550
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.