Cache A User-specific Menu

My web application uses a custom-generated menu system which is tailored for each user individually when they log in, based on their permissions. I've got this working very quickly on the server using ASP, and the menus are just included into each page as it's served out.

The problem is that the menus take up a fair amount of bandwidth (about 12 seconds over 28.8 modem - not an uncommon dial-up speed in this part of the world). I can't really simplify the menus any further, so the only thing left to me is to somehow cache the menus on the client, but I can't figure out a way to do it.I've thought about getting the asp menu builder program to write out the menu item data to a .js script file and then build the menus on the client using the cached .js file, but this is clumsy, and if the user's machine is low-spec it could take longer to build the menus than download them.

View Replies


ADVERTISEMENT

Forum Menu - Total No. Of Views(for Specific Topic)

every time a user clicks on a record its noViews is updated, and similarly the noReplies is incremented by 1 if there is a reply to a record(question). Code:

View Replies View Related

Giving Access Permission To Specific User

I want to create directory and set access permission to specific user.

i tried with wscript but it's not working, i used "cacls" command it's working only NTFS partition but i used to fat32 . how to set directory permission with asp script
on fat32 so anyone help me?

View Replies View Related

Any Ways To Clear Form Cache Or Prevent User From Pressing The Back Button

Are there ways to let browser forget about the previous submitted form data?

Or prevent user from pressing F5 to submit the same form again

Or prevent user from presising back on the browser?

View Replies View Related

Session Cookies - Detecting Specific User-agent/IP?

I'm new to using session cookies and need just a bit of help. On the introduction page to my project, I'm setting:

<%@ Language=VBScript %>
<%
response.cookies("user")="authenticated"
%>

Then, on subsequent pages, I'm checking for the cookie, and redirecting if it's not there:

<%@ Language=VBScript %>
<%
If NOT request.cookies("user") = "authenticated" Then
response.redirect "http://somepage"
End If
%>

What I need to do is incorporate an ignore element (by user-agent or IP) into where it checks for the cookie. For instance, if a user has an IP of 127.0.0.1, it ignores whether they have the cookie or not and lets them view the page.

The reason I'm doing this is I have a search engine that's crawling the site and it doesn't always go through the front page - therefore, it's getting redirected on most of the pages it sees. So what I'd like to do is have the script see that user-agent or IP, then ignore the cookie requirement.

Is that possible?

View Replies View Related

If User Level Than Show Menu

I tried to make our menu differend for Users for example :

If user level = 2 than
show Menu (Add Contact)

I used this code:

View Replies View Related

Pop Out Menu / Sub- Menu In Frame

does frame support pop out menu? Thanks....

View Replies View Related

Asp Form Menu With Sub Menu

Can any one help with code for form menu in which sub menu appear on selecting the main menu. This is one field of an access database to be submitted by user.. Now I have code only for selecting from main menu. Code:

View Replies View Related

Cache

I'm building a page that displays all phone in phoneview.asp...however from admin section we can add new phone image tht stores path in database.
I wanna use cache object in phoneview.asp..becoz most of the time images r same..
so i just need to store image in cache...but not data..becoz asp page reads all phone list information from database and displays all phones.
so is it possible to store image in cache so it can be served quickly if its in list

View Replies View Related

Way(s) Of Doing Cache

Could someone tell me the way(s) of doing cache in old ASP pages?

What i really wanted was to keep in cache for some time the HTML generated by an ASP page (something like the "@OutputCache" directive of .NET).

View Replies View Related

No Cache

I have an ASP page with the "no cache" command.I know the ASP file is not being cached. But the flash file that is embedded in the ASP page is repeatedly cached by my browser.
Anyone discover a sure-fire method to prevent caching of embedded files?

View Replies View Related

Do Not Cache Image

In my asp code i generate a graph/plot which is saved as a .png file, so saved as an image to the server. The problem is when i revisit the page with different selections, a new image is generated but not shown in the HTML. The previous image is shown which is not desired. So i did some coding to not cache the image, but without succes. Here is some code i tried:

Response.Expires = 0
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","no-cache,must-revalidate"
Response.CacheControl = "no-cache"

<html>
<head>
<meta http-equiv="pragma" content="no-cache">
</head>
</html>

and i used "nosave" in the img tag

<td><img src="linegraph.png" width="<%=xsizewindow%>" height="400" usemap="#map1" border="0" nosave></td>

but all these options without succes......

View Replies View Related

Cache Object

i need to change a variable in my application object in every 5 minutes. Application("test"). how can i do that? can you show me an example code.

View Replies View Related

No Cache - Frames

I have a frameset with 2 different pages. When a user logs in the page is setup based on that particular user. The problem I have comes when that user logs off (killing his/her session) and someone else logs in one of the fr4ames does not always refresh with the new users info.

The user actually has to right click on it and click on refresh. I am killing session with �Session.Abandon� (this seems to be working). I have the following statements at the top of the page that is not refreshing: Code:

Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1

Anyone have any idea why the frame is not updating?

View Replies View Related

Cache-Control

My website is on a server that places Cache-Control: private in the
Header of the pages that are served. I see these pages are not cached
by Google (the Google Toolbar Cached Snapshop of Page function).
Is this directive from my server preventing Google from caching the
pages that have it or do I need to look into some other problem?
Thanks in advance for your input/feedback.

View Replies View Related

Clearing Cache

Is there a way to clear cache using ASP, VBScript or Javascript?

I have created an ASP login page with sessions etc so unregistered members cannot view certain pages, however, when you logout you can still press the back button on the browser toolbar and view the pages, I want to find a way to make those pages expire by clearing the cache or something like that!

View Replies View Related

Clearing Cache With ASP

Does anyone know how to clear a sites cache with ASP. I have a login script that does not terminate the history when signing out. A user can simply click the back button and get back into the site..

View Replies View Related

'cache' An ASP Page

how you 'cache' an ASP page? I run a football predictions league site and some pages than calculate users points stats and the league table are taking ages to load. I think this is because its making loads of calculations (Although I could be wrong!).

Ive been told the best way to solve this problem is to run the ASP page once and then 'cache' it. The page only needs to be run once to perform the calculations so I shouldnt be making it run the calculations on every request, as happens at the moment.

View Replies View Related

No-cache Vs No-store

what is the diference between these two cache control header.no-cache and no-store.I have read the w3.org explanation.So lets say I am using only no-cache ....my understanding is thatnothing is cached and nothing is writen to disk.but what happens when we use no-store....i think..nothing is written to disk but it could be cached.
Now my question where is this cache located...is it only in memory ?....if it is written to disk how log is it there and when does it gets cleaned.Is no-cache more secure than no-store ..why?

View Replies View Related

'cache' An ASP Page

how you 'cache' an ASP page? I run a football predictions league site and some pages than calculate users points stats and the league table are taking ages to load. I think this is because its making loads of calculations (Although I could be wrong!).

Ive been told the best way to solve this problem is to run the ASP page once and then 'cache' it. The page only needs to be run once to perform the calculations so I shouldnt be making it run the calculations on every request, as happens at the moment.

View Replies View Related

Cache Problem

I wrote the following code to clear the cache in my asp page.

Code:

Response.Expires=-1
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"

Cache is getting cleared but a new page is coming when i hit the browser's back button. I need to get the page expired warning message of internet explorer. I did some r&d and found that HTTP_CACHE_CONTROL: no-cache header is not getting added to the page. How to add this header to my web page.

View Replies View Related

Clear Out Cache

Is there any way I can clean the cache at the top of each web page so that users cant use the back button in explorer ?

View Replies View Related

Cache Recordset

I have an ASP which performs a simple query pulling data from an Access db. The data will only change about once a month so I reckon it'd be more efficient to cache the recordset in some way. I'm guessing I store it in an application variable but I don't know where to start.

View Replies View Related

Browser Cache

Just pass date as a querystring , even if you do not want it

like www.domain.com?x=date

No browser will ever cache this page because the url will change every second LOL. This comes particularly handy when you are making remote calls using xmlhttp or other means and you require the results to be current.

View Replies View Related

How You Cache A Page?

how you 'cache' an ASP page? I run a football predictions league site and some pages than calculate users points stats and the league table are taking ages to load. I think this is because its making loads of calculations.

I ve been told the best way to solve this problem is to run the ASP page once and then 'cache' it. The page only needs to be run once to perform the calculations so I shouldnt be making it run the calculations on every request, as happens at the moment.

http://www.pool-predictions.co.uk/ho...rs.asp?tab=a_d

View Replies View Related

Possible To Cache The Images On My Pages?

1: Is it possible to cache the images on my pages.....eg...credit card images, header images, logo etc etc, so that thge user doesn't have to keep loading them from scratch on every page?

2: How would i go about doing that?

I only want the images to be cached...not the content, as it involves sessions which store login info.

View Replies View Related

Web Page Cache Free

how can control cache pages, when i logoff my session and back to members page again the page is still so how can i get rid of this .

View Replies View Related

Delete Cache Browser

Someone know how can i delete cache of browser in asp code? is posible?

View Replies View Related

Data Fetched From Cache

I have a asp page "shownews.asp" which caches the data..now when i view the website how do i verify that the data is being fetched from the cache only and not from the database.

View Replies View Related

Returning Cache Data

I have an employee phone book application that is 5 years old. Written in asp with vb script calling sp's. when someone queries the all employee page they get all employees. When they then query employees by location it will again return the all employees data.

I changed the RS names in the all employee page in hopes that would fix it. I added the no cache code on all my pages and this hasn't helped. This app is 5 years old and hasn't changed at all but this just started happening within the past 6 months. When the user clears all cache and tries again it will work. How do I fix this?

View Replies View Related

AspJpeg Image Cache

When I upload an image with same filename as image already up there it shows me the old image not the new. Refresh button in IE give me correct image but that is not good enougth.

I also no you can in IIS add header to expire the images immediately but I do not wish to this all the time. I wish to be able to put in the ASP page to always reload the image. Any clues. Response.Expires = 0 does not work as only the page not the image!"·"%!!·!

View Replies View Related

How To Cache Input Data On Page?

I have a problem to keep the input value from user still keep. The condition when User input , let me say" Employee Code","Employee Name","Level", then the user input all the 3 field, but when the user submit the employee code not unique/already had by another record,then the problem is after that Employee Name and level input value empty again. Then How to keep the input value....with that condition.....i have no idea....

View Replies View Related

Script In Deleting Cache In Browser

what would be the script in deleting cache automatically in browser in asp? if there's no cache would that affect the transactional functionalities like add, update... and so on? am i going to put such script on every page?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved