Jump to content

SteveC

Members
  • Posts

    7
  • Joined

  • Last visited

SteveC's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Keep in mind IIS by default does not read the homepage if it is index.asp.By default its not set to.To set it to read index.asp as the first page over lets say index.htmstart > control panel > admin tools > internet information services (iis)find the folder containing the index.asp > right click > properties > Documents (Tab) > Add "index.asp"you could also remove the others there if you dont want lets say a index.htm to load even if its present.
  2. SteveC

    Hiding HTTP Referrer

    Interesting,gonna look this one up, but off the top of my head i thought of a labor-some workaround lol.redirect the link to a processing page youve made and stored on a different server than your own.when a user clicks on the link to get the site it came from, they are first redirected to the outside-server page you made, (sending data via form/post) on outside page the data is collected and then they are redirected to the source of the quote.K, off to find a real way to just hide the HTTP ref now, :)Of course with the above method sooner or later theyll just block that http-ref too:)Any idea what the code is they use to pinpoint it came from you?Im not familiar with how they isolate your http ref.
  3. Not exactly sure what you mean, but what if you just throw in If..End If.If CurrentField = Username Or CurrentField = Password Then skipElse do what it should cuz its not username or passEnd if?
  4. SteveC

    end session

    Why a logged in member is not allowed to do this is a little weird?I let my members run around anywhere on the site with full access, when they want to logout, i have a logout button set to a page which basically usesSession.Abandon() to release all their set session vars.If you really want them not to be able to go back, you could try putting an IF..End If in the home page that says if they are logged in to redirect back, or wherever.If they are not a member just to display the home page normally.Kinda like this...<% If UserType = "Member" Then Response.Redirect("memberarea.asp")Else %> < show page normally here ><% End If %> How you choose to store the UserType etc is up to you so i just put UserType so ya get the idea :)You may also want to make sure the home page or other pages you want to reload everytime (vs load from cache) are set to not cache. <%'Dont allow cache, or new values wont showResponse.CacheControl = "no-cache"Response.Expires = -1%> I place this code first, above the <html> start tagKeep in mind if the page never caches, every single time a request is made to show that page it will need to pull from server again and again.Hope something above works for ya
  5. True, I could scrap the method of using sessions to store info, but im not thats why I need the fix Session variable lifetime (.timeout) can be set through IIS or within each page to whatever you wish.You can manipulate them, and you can control when they expire. Yes after banging my head for hours on the problem i will for sure look into making normal cookies Another good idea.Though was trying to stay with the sessions since i have a huge site already coded so.Thanks for the reply Yahweh, just wanted to point out few things above though so others arent misled.As to my problem, i found a work-around i guess.Though for some people they dont need to do this, the session cookies work fine, yet for the people having problems, I had them do the following.In IE Browser > Tools > Internet Options > Privacy > Advanced > Override Cookie Handling > Always Allow Session CookiesHaving the user change the above setting allowed them to use the Session using site without any problems.By the way, i read session material and problems on probably over 15 different sites. NO ONE, mentioned the above fix.
  6. ADODB.Recordset (0x800A0CC1)Normally indicates that a field in the database your are making reference to does not exist.Its not this one is it?rs.Fields("addressl") = Request.Form("address")Noticed all your field names matched your form id names except this one.Also when you recieve the error, check to see if it reports what line number the problem was encountered on. If using notepad counting lines is no fun, I used to use notepad but switched to Dreamweaver totally just for the line numbers :)Dreamweaver also color codes your work nicely and of course has many other features. Keep in mind theres other software too that functions similar.
  7. Hi,Ive been working with ASP for quite some time now, I use session variables quite often and have never had a problem doing so until now.setup: An ASP website with Login and Password 1. user enters username and pass 2. info submitted to logincheck.asp 3. login check sets session variables to certain values if login successful. 4. secure pages check this session var to make sure they have access.problem: works on most systems, however a couple people say they cant get in.in my global.asa i have, <script language="vbscript" runat="server">sub Application_OnStart end subsub Application_OnEndend subsub Session_OnStart Session("UserRank") = 0 Session("LoginStat") = "Not Logged In."end subsub Session_OnEndend sub</script> Here is the line in the login check that changes the Session("UserRank") etc. Session("UserRank") = mcRS("Rank") Result: some people can not get into secure pages because it uses Session("UserRank") to authorize them, but with some people when Session("UserRank") is told to hold mcRS("Rank") which = 1 it doesnt. When investigated the problem users Session("UserRank") is not being saved as 1 over 0. Though when the same login and info is used from another computer it works.Whats really buggin me is why does this work for some people yet not for others.With the people it DID NOT work for I had them restore all browser settings to default and clear their cache/cookies etc. They are also not running any type of page interfering software like popup stopper etc.Please help, this is soooo frustrating.SteveCp.s. ive checked for typo's/syntax problems, theres none.mcRS("Rank") is stored as a Number not Text, in Access 2000 DB-The above is only a problem for certain outside users.
×
×
  • Create New...