Session_OnStart Does Not Start
The "Session_OnStart" event doesnot fire if the website has .htm file as the
startup document. If I change the extension of the default document from
..htm to .asp then I can see the event fires, But now I cant change the
default page to .asp.
How can I make the Session_OnStart fire in that situation?
View Replies
ADVERTISEMENT
In Global.asa I have mentioned two sub routines 1> Session_OnStart and 2>Application on Start but both of them are not at all initiated when I restart IIS.
Please Tell me why is this happening, I have tried ever ....
View Replies
View Related
In the Session_OnStart sub I create a random session name in a session variable, then create a file under that name for statistical purposes.
Upon session expiration (user closes window, etc.) I want to reopen the file to add more data. I placed this code in the Session_OnEnd section.
My OnEnd data does not get written to the file. However if I put the exact same code in the Session_OnStart sub it works.
View Replies
View Related
Do I need to do a Application_onstart first then i can do Session_onstart?? or it doesnt matter which one is used b4 which one? When i use a global.asa, do i need to call it within my asp page to execute it or will it be auto started and execute?
View Replies
View Related
i just started learning what it can do, and I am using it to tracj how many people have logged into my site, but when people login to my site, I start 2 sessions, one for their ID, and one for their name. Is there any way to only count the name session as a session_onstart in global.asa?
View Replies
View Related
I have one IIS 6 machine that seems to ignore global.asa completely. I can't get *anything* to fire -- not Session_OnStart(), not typelib declarations. This is true in the web root as well as in any application folder.
In particular, this is preventing me from loading the ADO 2.8 type library,but I cannot even force an error by using a malformed GUID.This is my only machine that appears to have this problem.
View Replies
View Related
In my Session_OnStart in Global.asa, I am setting some cookies. One
of them, I set as follows:
dim UserID
UserID = Request.ServerVariables("LOGON_USER")
Response.Cookies("User")("ID") = UCASE(UserID)
When I immediately log the cookie value retrieved from
Request.Cookies("User")("ID") into the Windows Event Log, I get the
correct value. However, when I try to retrieve the cookie on the home
page of my application using the same code,
Request.Cookies("User")("ID"), it either cannot find the cookie or
cannot read the value. I am retrieving the cookie before all HTML
headers are written. It is my first statement on the page after
Option Explicit. I have even compared the session IDs. The SessionID
created in the Session_OnStart is the same value as the SessionID on
the home page.
I have read that the Session_OnStart only has access to the
Application, Session and Request objects. It does not explicitly say
that it does not have access to the Response object. Also, I was even
able to use Response.Write's in Global.asa to print out the values
although it looked like it had also stopped the session after I did
so. Cookies are definitely enabled on my machine. I have even tried
setting the session cookie's expiration to be persistent for a few
days to see if it was perhaps expiring before I was able to read it
but this did not work either.
Is there something preventing cookies to be created in Global.asa in
the Session_OnStart sub? Is the Response object not available???
Please let me know if anyone else has had this problem or solution.
View Replies
View Related
This is a standard ASP application that has several pages at the root
withthe global.asa. I set a session variable session("accountid") =
"123456" within an asp page and then response.redirect to the next page and
immediately response.write session("accountid") and I get back nothing.
But if I set a session variable session("accountid") = "123456" within an
asp page and response.redirect to a page in a sub directory and immediately
response.write session("accountid") I get back 123456 on the screen.
View Replies
View Related
When I set a cookie in global.asa in the sub session_onstart, even if
I have "privacy" in IE 6.X set to "block all cookies" the cookie is
still set, and I can get it on other pages.
I can't find an article that addresses this as a specific issue. Why
does the browser get the cookie when it is set in the session_onstart
event even when I have "block all cookies" set?
View Replies
View Related
I have a SQL database, which runs a basic search engine, it has about 3000
links at the moment. I am currently keeping track of the click through rate
and displaying in, below the link so it says HITS TODAY / HITS TOTAL.
What I would like to do now is to take it one start further and be able to
offer people the opportuntiy to have a small piece of code in their site,
that will be able to update another hits counter in my SQL server.
I obviously dont want to allow people to my SQL or open the 3306 port to the
public, I would just like to be able to load a small java / vbs or what
ever, to be able to write to my SQL..
I use http://www.counted.com/ at the moment, but I want to be able to do
just very basic hit counter, I think from looking at how other people seem
to do it, I might need to do this using Java Script
View Replies
View Related
I have a Hello World app written in VS2003 C# it runs fine on my local
PC using IIS5 XP Pro Dotnet1.1 but when I up load it to my site I get the
following:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: Could not load type 'WebApplication1.WebForm1'.
Source Error: Code:
View Replies
View Related
I know HTML and i want to start on somethign mroe advanced. Can anyone tell where do I start. I want to stat simple and learn the veyr basics first.
View Replies
View Related
Recently my IIS link in admin tools will not open the iis control panel. I have been doing asp development on the machine for some time so it seems odd this problem has all of a suden happened. I read somewhere a file (iis.mcs?)could be corrupt? Does anyone know how to fix it?I ask this place 'cos I am thinking that someone using ASP too also has had a similar problem or can point me in the right direction.
View Replies
View Related
I wan to start learning asp.net .is it going to be easy to first learn some asp and only then move to asp.net or can I start straight with asp.net.
View Replies
View Related
How do i require ONLY 443 on one site and ONLY 80 on the other. The secure portion does not use Host headers. I have 2 websites on the same machine
SSL.MyMachine.com
Normal.MyMachine.com
I want the guy who hits SSL.MyMachine.com to only be able to use port 443 and never port 80. I want the guy who hits Normal.MyMachine.com to only be able to use port 80 and never port 443. How do i require ONLY 443 on one site and ONLY 80 on the other. Becuase the secure portion does not use Host headers.
View Replies
View Related
Here is how it goes in simpliest terms.
We have a link to an ecommernce page, it uses sessions
(which we do not have access to change)
I want to create a popup window that will create a new
Internet Explorer browser to open (at a page i specify).
I dont mean like the javascript where it just opens a
window and contains all the info that u have (same as if
you hit ctl-n) I mean lauching Internet Explorer new
again, going to this specific site to aviod the session
that it is already in?
View Replies
View Related
I know something about HTML and no more but recently i really like to learn ASP but unfortunatly no body know ASP here. How can start asp and what should i know before i start learning ASP.
View Replies
View Related
Is there a way to start the Primary Auto_Number at a specific number? Usually it starts at 1, but I would like to have it start at 5,000
View Replies
View Related
Here is the process on the site before I ask the question:
User logs in
session is created based on username and userid
user edits a record in the db
a hidden field with the userid session is inserted in the db to show
who edited the record
I had a user ( mike, id -1 ) edit a record today but the userid that
got inserted was 2 ( scott ). mike doenst know scotts credentials and
scott has never used the PC that mike is using, matter of fact scott
hasnt even logged into the site today.
View Replies
View Related
my user table start off counting 1, 2, 3... (auto_number) and i would like to start it off at 100. how do i go about doing that?
View Replies
View Related
I've been using this installation of .NET for about 3 months without problems.After not using it for about ten days, I came back to my project and when I tried to run it with Debug>Start (F5), it comes up with this error.
"Error while trying to run project: Unable to start debugging ohn the web server. Could not start ASP.NET or ATL server debugging. Verify that ASP.NET or ATL server is correctly installed on the server."
Before I start de installing things,does anybody have any simple clues as to why this is happening?
View Replies
View Related
I want to run a asp website in my webserver and I don't know how to setup a asp server.
View Replies
View Related
I have been running IIS on Windows 2000 for several years with no problem.
Today, when I clicked on the system tray icon and clicked start service, nothing happened - no error messages. IIS just ignored me completely and would not start.
I am about to try a computer restart - but has anyone else run into this problem?
View Replies
View Related
i have a database that maintains all company policies and now i have a request to print out all policies, with one button click, sorted by department.
does anyone know of a way to start a "new" html page or create a printer line break? i'd like each policy to start on their own page.
View Replies
View Related
I would like to make a database that contains Picture, Name Job description, gender and web address. The database should be able to hold at least 1000 profiles.
What program would you sugest? Where do I get it? Are there any online tutorials you would suggest?
View Replies
View Related
I've installed Windows Server 2003...I created a
HelloWorld.aspx file and its associatied HelloWorld.vb
file and stored both files in the wwwroot directory.
When I put http://localhost/helloworld.aspx on the Address
line of my IE browser and press enter, I get the following
error msg:Access to..."C:WINDOWSMicrosoft.NETFrameworkv1.1.4322
Temporary ASP.NET Files oot2135a5088d69a834" is denied.
This works on my laptop which has XP Pro installed.
View Replies
View Related
my understanding was when IIS restarts that time when the first session is requested application_on Start is called. My session time out is 1 minute. after every session time out happens when the session is requested then it goes to application_onStart first. Isn't application on start just happens only when IIS restarts and first session requested.
View Replies
View Related
I am trying to stop and start the ftp service from an asp page using the niuser account.
my code is simple: shell.run "net start msftpsvc",0,true. ASP page returns no errors but nothing happens. code works in .vbs but not from the webserver (IIS6).Can someone tell me how to do this? I would also like to edit the registry if i can.
View Replies
View Related
Could anyone recommend a server provider that can handle asp for a site that will contain roughly 500 pages that won't cost me the earth. The site will be UK based mainly for UK customers. I have found so many but it's tough to tell who is and isn't worth the money.
View Replies
View Related
When I try run the project, I get an error as "unable to start debugging on the web server. the project is not configured to be debugged. " . I'm running it on Windows 2000. I've made sure that debug=true in the web.config file and the authentication mode = "Windows".
I also get an error when I try it on IE5 as :"Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS " .
View Replies
View Related
If I know the week number and the year, how can I calc the beginning and ending dates of the week? For background I'm going to do some grouping by week but don't just want to call the weeks Week 25, Week 26, Week 27, etc. And the week number is to be calculated with:
DatePart("WW", [MyDateField])
View Replies
View Related
I have an Active Server Page connected to an MS Access database. I use this page to submit information to the database. Among the form fields is a start time and stop time field.
By setting the value of start time to <%=Time()%>, I'm able to collect the start time automatically when the new form is opened. I would also like to collect the stop time by clicking the submit button. Code:
View Replies
View Related
May I boldy suggest that a new advanced ASP forum is created (ideally within the "Advanced Development Center", but otherwise as a sub-forum of this forum) for ASP questions and discussions which are more challenging/complicated than the norm? Code:
View Replies
View Related