Dear all,
I would to ask that why the user always faced the different page when user click the back button instead back to page2.php but it go to page5.php..I remember in asp, we use the global.asa to solve this problem because the server will confuse when many user login the system as a member and every members go different pages.
So may i have anyone to guide me?
8 2480 Atli 5,058
Recognized Expert Expert
Hi wish.
Could you show us your code? There are several different ways of doing what I think you are attempting, and each of them can fail in more ways than I can imagine.
It is very hard to debug code you can not see :)
Hi,
I just have asp language code but i dun know is same as php?
This is the code in asp and called it as global.asa -
<script language="VBScript" Runat="server">
-
sub Session_OnStart()
-
session("userid")=""
-
session("isuser")="false"
-
end sub
-
-
sub Session_OnEnd()
-
session("userid")=""
-
session("isuser")="false"
-
end sub
-
</script>
-
with this page, then the user will not faced the problem in asp.But in php, i dun know this code can apply in or not?
Atli 5,058
Recognized Expert Expert
Hi.
Please use [code] tags when posting code. It's impossible to read it without them.
That said...
I'm still not understanding the problem. As far as I can tell the ASP code you posted is meant to reset those two session variables when the session starts and when it ends.
But how does that affect where your user is redirected when he presses the back button?
Why would you want to reset those variables when the sessions starts and when it ends?
Couldn't you then just as well use regular global variables?
The code you posted can be easily re-written in PHP. I am not very good with ASP, however, so I don't know if your subroutines get called by some automatic ASP mechanism or manually by your.
In PHP you would have to call them manually.
Hi,
Let say the application is run at the server now and got two people are access the application and one user is browse page2.php and another user browse is page5.php. When the first user in page2.php click back button then the first user cant back the original page but the page is back on the first user pc is the page that browse by the second user.
My problem is solve the confuse in multiuser in application.
Can u give me ur guideline?
Atli 5,058
Recognized Expert Expert
Ok, I'm trying to understand what you mean.
What you are saying is...
Your first user is viewing page 2. The second user is viewing page 5.
I'm assuming they both stated at page 1, so when they press the back button, that would be where they should end up?
Now when the first user clicks back, he is sent to the page the second user is currently viewing?
Am I understanding correctly?
Hi Atli,
U r absolutely right. Both users come from the same start page. How the problem can occurs?
Atli 5,058
Recognized Expert Expert
Thats weird.
The back button in a browser should not be affected by anything your PHP code is doing, unless you are redirecting it, and certainly not by anything other users are doing. It should go straight back to the last URL it was viewing.
Could the content of that URL be changing?
Unless it is a back button in your web application? That could well send the user somewhere it is not supposed to if there is a error in the code.
How does you application work? Can you give us an example of what the URL looks like on each page? And if you coded the button used to send users back, could you post that code?
Hi,
i just simply write the javascript code and the code in php is
<script>draw_bu tton<"butback", "manufaclist.ph p","","","",""> </script>
the problem is no always occur but sometime it will.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Tim Thomas |
last post by:
Hi,
I am very new to .NET and am in the process of building my first web
application.
I will briefly describe what i am trying to achieve:
I have a system where suppliers register their details, their locations, and
then add themselves to categories. Each category requires additional info
from the suppliers, this additional category info is stored in its own DB
table. a suppliers may add themselves to as many categories as required....
|
by: V. Jenks |
last post by:
Long story as short as possible:
I have a page (aspx) that contains a user control
(ascx). In the form the user can enter a username and
password. If they do, the password box auto-posts-back
and checks to see if the user already exists in the
database.
If yes, the rest of the form fields on the page are
populated with that existing user's data.
|
by: Robert Howells |
last post by:
Perhaps I'm just too new at this to pull it off, or perhaps it's just bad
architecture. I'd appreciate some feedback on the the wisdom (or lack
thereof) in attempting the following:
I'm not new to programming, but I am new to ASP.NET and Web application
design in general... loved the concept of user controls and dynamically
adding them to a page. So what I wound up with was an application that
dynamically loads two user controls directly...
|
by: hemant.singh |
last post by:
Hi all,
I am trying to get a way by which I'll know exactly when user goes out
of my site by clicking on close button in browser, So that w/e user
click close button in browser, I can send a signal to server.
This seems to be achievable with body unload events, but it is little
too much, as even if user navigate within my site, this event will be
generated, this can be avoided by handling onclick of each link, so
that I'll know exactly...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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,...
|
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...
|
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...
|
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...
|
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();...
|
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...
| |
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |