Session An Application Variables
I want to store the link of the page that each user of my web site visited so it can help me to personalise information for each user depending on the pages visited.I don''t know what kind of variable should I use.
If I understand well, a Session variable is deleted when the session end so when a user close the browser and then reconnect to my web site, the session variables used the first time will be deleted and I can''t keep track of the pages visited.Same thing for the application variable except that the variables will be deleted when the application stops.
View Replies
ADVERTISEMENT
I've got two domain names sharing the same IP address that use ASP VBScript
If I set a session variable with domain 1, it is only available for domain 1 - this is
correct?
If I set an application variable with domain 1, the app variable is sharing across all
domains using that IP address - this is correct?
This is the behavior I am seeing and I want to make sure that my server is set up
correct. I especially want to make sure application variable behavior is correct.
View Replies
View Related
I have absolutely no idea how global.asa works. I've read through quite a number of articles and they're all fine and dandy but implementing it on my (first) ASP application just doesn't work. It's amazing how ASP.NET automates everything for you.
Anyway, I need to store session variables and I have no idea how to. I have no global.asa file, but I can declare session variables fine. So does that mean that somewhere in the ASP process, a Session_OnStart() method's already running.
If I create a global.asa file, I put it in the same directory with other ASP files right?
A global.asa file should contain the basic four application/session methods... and shouldn't really contain much code, unless I want to start a variable with a default value. True or false (I say true). Code:
View Replies
View Related
I am using IIS 6.0 and am trying to use application variables to track uasge. They work fine as long as there is an active client but about 20 minutes after the last activity they are reset to the default values declared in the global.asa file.
View Replies
View Related
If I'd use 1000+ application variables, would it decrease my server's performance?
View Replies
View Related
I'm building a web app with a lot of ASP files which I'd like to split out into several different subfolders. However, I noticed that application variables that I set up in my Application_OnStart event sometimes survive switching to a different folder while at other times they do not. I am relatively new to ASP so I'm not sure if I'm doing something that inadvertently unassigns these variables.
One thing I kow I'm not doing is explicitly reassigning or unassigning them.My other option is to assign them in a default.asp or some other generic file that I replicate in all my folders and include in the entry point asp file to each folder,but I'd rather avoid the redundancy so as not to complicate maintenance further.
View Replies
View Related
can I put together an object (not too big, just a small array or something) and chuck it in an Application variable or are there better ways to do this? Sessions are okay if it's a better alternative to Application but I'd rather skip cookies if I can.
View Replies
View Related
I would like to know what are the Advantages &
Disadvantages of using Application variables in an ASP page.
In my application I would like to store some physical
paths from database to application variables.
I'm in a dilemma whether to hold this values in
application variables or in server side variables in
an include file. Please help me with this..
View Replies
View Related
users login and can navigate an administration area, however, at random (it seems) when you click on a link to navigate to another spot in the admin portion the application variable used to denote the user as an admin is getting changed, and therefore load the homepage because it thinks you are not logged in. any suggestions? need more info?
View Replies
View Related
Has anyone worked with Application variables in an array format? I need to create a list of 40 items using some sort of persistant array. I can do this with a DB, but in this case, it would not be efficient.
I did a few tests by trying to pass an array to an Application var, but can't seem to get it back.
<% Dim MyArray(39)
'populate the array
Application("myArray") = myArray
%>
then on another page, I tried
<%
Dim myArray(39)
myArray = Application("myArray")
'loop through the retrieved elements
%>
This doesn't seem to work.. anyone did something similar with good results?
View Replies
View Related
i would need to know if i can permanently modify the content of the global.asa file.
I am writing a web log in form that enables users to change their password (i dont need much security, this is more for practical purpose so i use application variables), these passwords are defined in the Application_OnStart() event but i would like to be able to change them without having to manually rewrite them.
View Replies
View Related
I intend to use application variables to control access to editable blocks on an intranet site. There are about 300 blocks currently and that may grow to as many as 400 as time goes along.
Using the scheme I am thinking of an application variable will contain the username of the person currently editing a block. Is there a way to "destroy" the application variable so it no longer occupies memory or is this anything to be concerned about? I don't plan to place much more than a 20 character string into the variable.
View Replies
View Related
What are the best methods for using global constants and variables? I've noticed that many people put all global constants in a file and include that file on every page. This is the best way of doing it - is it not? Once the application has loaded the page it is cached and is immediately available for other pages.
With global variables - the best thing to do would be to use application variables - so long as there weren't too many declared. Is there another (easy) way of using global variables apart from using application variables?
View Replies
View Related
I'm just dipping my toes into server-side scripting.
The Global.asa file seemed really nice, but am I understanding correctly that the application onstart event is fired ONLY when the server is started/re-started or when the FIRST user logs onto an ASP application?
If that's the case, then all the changes I keep making to my Global.asa file are pretty useless, right? (which seems to be the case -- i.e., my pages are not using any of the new information). Code:
View Replies
View Related
I'm using application variables for a web based sales tracking application. I use the variables for stuff like connection string, database name, etc. I store the values in a asp file that is included in a login page. The assignments are in a procedure that I then call on the login page. This is done everytime a user connects to
the login page.
what's happening to the variables? Are they being overwritten everytime a user accesses the page? I'm not checking for the existence of the variables. I just call the routine everytime the page is accessed. I know the values are shared for all users but, I was wondering if I should check for the existence of variables? Will it free up resources? Should I be using locks?
View Replies
View Related
You are required to create an online tracking system for the Webmaster which should show the current online status of all the users currently logged on to your site with the following details about every user:
SessionId
Current Page requested
Time of request
Browser used for making the request
If a user remains inactive for 10 minutes, then it should be assumed he is not online. You are not supposed to use any permanent storage features.
View Replies
View Related
Does anyone know of a way through asp code to drop a users application
connection and prompt them for their credentials? I would like to offer the
ability to log into the application with different NT username and password
with them having to close and re-open their browser. I am using basic
athentication for my application.
View Replies
View Related
I want to create an administration page which lists all the current users who are on the site at the moment.
I know coldfusion has this feature built in using the SessionTracker class... does ASP have something similar? If not... is there any way I can just iterate through all the session files on the server...?
View Replies
View Related
I'm working on an ASP classic application. I wish to set my session.timeout to 1 minute for testing purposes. I placed session.timeout = 1 in the global.asa but it seems not to be working because the session is still I alive. I0 can still browse through the application. How do I do it and where should I place the session.timeout? Do I still have to configure something in the server?
View Replies
View Related
Until now I've only seen VBScript to handle application and session events (e.g.
Application_OnStart, Session_OnStart). Is it possible to do this directly in
JavaScript or do I have to write VBScript proxies?
View Replies
View Related
I am using Session variables in my ASP application. I have tested the
application on a Win2k professional and it works fine. When the same web
app is installed on a win2k advanced server from the client browser when the
app is accessed the session variable returns null inspite of a value being
already set. I have checked the IIS enable session state settings. When i
use the server machine as client and access the app as localhost then the
session variable has correct value.
How can this be solved? What other settings if any, need to be changed to
get it work.
View Replies
View Related
Do session variables carry over if you've left your site and come back?
My shopping cart uses PayPal/IPN to transact and then enter details of the transaction into my database. All of the data entry takes place after IPN has returned all of the data to my site.
A couple of the fields I need to populate are held in session variables throughout the application. When the customer clicks on the checkout button, and is sent over to PayPal's server to complete the transaction, will the session variables still be available to me upon returning to my site?
View Replies
View Related
Is there a way to close a single session variable, once it's been created? I have an application that requires a several session variables to be created once a person enteres a certian section of my site. When they leave the variables are set to nothing, as they are no longer needed. I'd like to just close them out, but I will still need to keep the session open, so Session.Abandon will not work in this case.
View Replies
View Related
I recently reformatted my PC and reinstalled ISS onto Windows 2000.
Since I have done that, my local sites don't work as they used to.
By that I mean, if I have a login page, such as this: Code:
View Replies
View Related
On my IIS 5.0 i have enable session state set to 20 minutes
ASP SCRIPT TIMEOUT set to 200 seconds.
On my asp pages i even coded in session.timeout = 60
When i check the value of one of my sessions on a page i
am being returned to main page.
i.e If session("basket") = "" then
go to mainpage.asp
When i check the session.timeout on the page this is set
to 60
If i wait around for a few minutes i.e 5 then i am taken
back to mainpage.asp...
The server is not given me the 20 minutes session state.
View Replies
View Related
I cannot seem to get session variables to work on our test server.
The test server is running windows server 2000 with service pack 4, iis 5.0.2195.6620, and sql server 2000.
However, on our main server, NT 4.0 fully updated, they do work.
Could anyone enlighten me as to why session variables don't work on Windows Server 2000?
View Replies
View Related
We have different types of logins for our accounts on our intranet. When a
person logs in, a Session variable is set to determine their level of
access. For sake of argument, say the two LoginTypes are Manager and
Employee.When I log in (as a Manager), I get a certain set of options on the
homepage. Then I return to the login page, after logging in as myself, and
log in as an Employee. For some reason, the page seems "cached" and the
manager options will still display. If I refresh this page, it will appear
the way it should. I *think* this only happens when I copy/paste a URL that
I was at as a Manager. I believe that if I click a link, it displays
properly.Is there a way to prevent this? I do a ton of copying/pasting
URLs.
View Replies
View Related
I would like to declare a session variable.
' Use session variables for the recordsets for the GetSubordinates and IsManager functions
Dim orgStructRS
set orgStructRS = Server.CreateObject("ADODB.Recordset")
Where can I declare this session variables?
Once I use the recordset in both the functions, where do I close these recordsets?
View Replies
View Related
I have read couple of articles warning against the use of storing VB COM
objects (Apartment Threading) in Session Variables due to the fact that
these variables could go bad.My question is what's the workaround this?
I have also read about making ASP Stateless...I'm guessing that means
turning the session and application variables off and if you do that
then how do you pass information for a particular user from one page to
another?I'm confused about how to get an ASP site working without using
Application and Session variables as well as not storing VB COM objects
in Session Variables.
View Replies
View Related
I have a session variable in a login page. Then I go to a form page where I
uses the ProfileID and the UserID. Then I go to a result page where I would
like to use the UserID as a filter, but I can't get the value is stored in it.
View Replies
View Related
I'm loading a variable into the session variables that will be for checking to see if the user can access a certain area of the website. When the user logs out or gives and incorrect login password is it better to kill off all the variables using session.abandon or to set the session access variable to False?
I'm not really concerned about using the servers resources with this one variable, but I would like to keep the server as free as possible.
View Replies
View Related
I've noticed that in my ASP application that session variables are not carried over from
one IE6 open browser window to another.
Can anyone tell me how IE can do this? It seems like it's a useful protection mechanism
that I can add to my application.
BTW, I'm looking for a way to determine if someone is moving cookies between computers.
How IE and/or ASP handles sessions might give me some insights (and I'm open to
suggestions as to how to prevent cookie stealing?)
View Replies
View Related
I have an ASP [Classic] application running under IIS 5 & 6 [on different
servers (obviously)]
I need to implement Session() variables to cache some frequently looked up
data. Because of the nature of the data, it is best held in the Session()
rather than the Application() object.Is there a limit to the how long the parameter name can be?
For example:
Session("HairColour") - the parameter name length her is 10 characters -
what's the max length (is there a max length)?
I ask because my code will generate these parameter names on the fly and I
don't want them to break anything
View Replies
View Related