View Full Version : Include files without global.asa
01-06-2005, 09:39 PM
Can i use the include command if the server i am using does not support the global.asa file?
01-07-2005, 11:19 AM
yes of course
but asp without session is like a girl without permission access
01-07-2005, 12:41 PM
but the fact that global.asa cannot be used is not directly followed by the fact that Session cannot be used.
<note to="self">remember gwendaals "is like .." example</note>
01-07-2005, 12:55 PM
you can of course use session and application in your applications without any global.asax or asa ... I nearlly never use this kind of files
01-07-2005, 02:32 PM
So are you saying that I can use like the Session Abandon function and can create session variables without the global.asa file? Thing is, I think i was reading on w3schools
Thus far I've been able to use the session ID but I didn't think that that meant I could use the other session functions...
The fact that I can use the session id, does that indicate that I can use the other session functions?
I know gwendaal, please don't rub it in... :o :o
My server's position:
Global.asa is not supported due to our system setup.
The Global.asa file can contain only the following:
the #include directive
Thing is, I would use session variables in my code but I have to be sure that I can use the session_on end function to delete all those variables
01-07-2005, 02:45 PM
don't worry when session end the variables are killed
juste try in a test page
Session("test") = 10
and you will see
01-07-2005, 02:58 PM
wasnt the question about includes? i think you can still use <!--#include file="..."-->
but if not just use Server.Execute("...") :)
hope this helps
01-07-2005, 03:02 PM
I'm not worried about removing the session variables, I want to do a database operation when the session ends......
I tried your lil example.... thanks alot man.... but can I how do I find out if I can use the session_on end function to do a database operation?
And on which page would I use the session on end function if I can use it?
Thing is, I write in my database some user variables when the user enters the site... when the user leaves the site I want to delete those variables from the database.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.