ASP Cookies + Frames = Problems

I created a music website that allows people to sign up and post
messages on some message boards and update their profiles and such.
The login script uses cookies, so when they Log Into the site it does
something like:

Response.cookies("ID") = RS.fields("UserID").value
Response.cookies("USERNAME") = RS.fields("Username").value
Response.cookies("LEVEL") = RS.fields("ULevel").value

and from there, I have a header include that will verify that they are
logged in using something like this:

if Request.cookies("ID") <> "" then
{{code code code}}
else
{{code code code}}
end if

Everything worked great! It had for some 5 months now.

HOWEVER..recently I added a frame to the bottom of the site, which
houses a radio bar. The radio is constantly streaming out music, so I
don't want to refresh it or else the music is going to be disrupted.
The top frame holds the site exactly as it was before. But, now I am
getting some complaints that people cannot Log In. I cant put the
radio in a pop up window because there is prime advertising space on
it, which is very important to our business.

So..is there some reason that ASP cookies + frames = problems? Is
there any way I can fix this without killing my frames?

View Replies


ADVERTISEMENT

Does Cookies Have Any Limitations When Used In Frames?

Does cookies have any limitations when used in frames?

View Replies View Related

Creating Cookies In Global.asa Session_OnStart But Cannot Read Cookies On Subsequent Pages.

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

Enable Permanent Cookies But Disable Session Cookies

Is it possible for a user to enable permanent cookies but disable session cookies.....this seems like a contradition yet this is what I appear to be
reading in online articles?

View Replies View Related

Creating Cookies File And Stored In Cookies Folder

I m creating a cookies in my application and it work properly but i can't see the cookies where it will sotred i checked the cookies folder but i didn't find that I want to create a cookies file as the other web site create and store where other cookies will stored in Cookies folder or Temprory Internet files folder eg:1. arvind@google.co[1].txt this stored in cookies folder 2. arvind@msn[2].txt ....

View Replies View Related

Frames?

If I have existing code that has a drop down box to select department. This then brings up the Access database based on a field passed from the drop down selection.

How can I get the database to show up without getting rid of the table display from the selection. This way I do not have to go back adn forth for every selection.

Shold I create Frames? How do I do that?

View Replies View Related

Using Frames

I want to print a page, with a header(image in another frame).

Is there a way where i can specify what i want printed as a header?

Or can i specify only certain frames to print.

I'll need to do this in the coding because there is other frames on my page as well that i don't want to print.

View Replies View Related

Asp And Frames

I am trying to use frames in asp page. Well I am aware that frames are on client side etc.. what I need is following. Let me explain using the main page which have
the frames skeleton :

******FRAME.asp**

<HTML>
<HEAD>
</HEAD>

<FRAMESET ROWS="50%,50%">
<FRAME SRC="which.asp" NAME="which" FRAMEBORDER=0 BORDER=0>
<FRAME SRC="what.asp" NAME="what" FRAMEBORDER=0 BORDER=0>
</FRAMESET>

</HTML>

************

1) on page what.asp i am extracting value from database in a table
format.

2) when any row in what.asp is clicked the value should change in
which.asp

3) Finally I should be able to submit the whole FRAME.asp when the
update button on what.asp is selected.

Tried to search for examples on the net but unable to find any.

View Replies View Related

Asp Frames

I have an ASP programme which calls functions to display a list of tables from an access database

e.g.

table1(a,b)
table2(a,b)
etc

Ive also created the frames page dividing the page into two vertical colums 30% and 60%
Ive created a menu in the left column and when clicked upon want to have just a single table displayed in the right column, how do i do this?

View Replies View Related

ASP And Frames

I am having an issue using ASP and frames. I am required to use frames
so NOT using them isn't an option.

Problem: When a user enters the site they goto survey.asp (this is the
frameset page). However when an ASP script redirects to the survey.asp
page I get double frames.

Meaning, that when the user is returned to the page the orgional frames
exsist and then ANOTHER set of frames is set within those!

Any ideas on how to fix this?

View Replies View Related

Frames?

I just wonder what are the implications to use frames to build portal. I've
seen some sites that are quite fast with frames but I just wonder if there
are hidden "costs".

I've tried to use in the past and I run into a lot of problems when I worked
with environment where there were frame and no frames pages.

View Replies View Related

Three Frames

I have a page with three frames. One on the top, one on the left and one on the right.I use the frame on the left as a list of selections for the user (ie a menu). When the user makes their selection, the frame on the right shows the relevant page.I want to give the user the option of hiding and showing the frame on the left, by click on a button.My experience with frames, is nil.

View Replies View Related

Frames

how could display one background image on a web page that is divided into 4 seperate frames.

View Replies View Related

ASP In Frames

When I put my asp files in frames and call the frame from browser, I get a message to save the files. The files aren't actually displayed. How can I see the asp files in frames?

View Replies View Related

ASP & Frames...?

i have an HTML page (Index.htm) which has 4 frames in it. each frame is a different ASP file.

How can i access one frame from another? is there something like HTML-DOM which i can use with ASP? any other ideas from accessing different frames?

View Replies View Related

Hyperlinks And Frames

Say for instance that I have 2 frames and I have code in one. That code is returning information from a database. In that database there are hyperlinks to images. Upon clicking that hyperlink how do I force the image into the other frame?

At present It opens appears to go to a new page, but everything is coded in one ASP page. So I have to click back to select another image? I want to be able see both the database and image so I dont have to go back and forth

View Replies View Related

Asp Code And Frames

is it possible to include asp code in a page so that it only executes if frames are used by the browser?

View Replies View Related

Pass To Two Frames

I want to pass the value to two frames and two pages after hitting the
submit button If my form I have this:

<form method="get" action="search2.asp" target="fSearch2">

I want to pass crPN to below as well
action="search3.asp" target="fSearch3"

I am having a little problem figuring this out.

View Replies View Related

Can I Emulate Frames Somehow?

I can build a nice looking website in HTML, but I have to admit that I don't know a ton of other code beyond that (i.e. ASP, Javascript, PHP, etc. - although thanks to Sitepoint I have incorporated a tell-a-friend and contact form using ASP)

My client currently subscribes to a service for selling his photographs where he uploads his images to a "sales site" that establishes a gallery for him where his clients can select and purchase images online. He would like to incorporate the "branding" from his site (header, background, footer, etc.) around the pages for his image sales site. My first thought was to use frames and to direct the main frame to the sales site pages, however the "padlock" icon in IE that indicates security to users when purchasing disappears because it's just a page within the frameset and he feels that his clients won't be comfortable purchasing from his sales site if they can ensure their online purchase is secure (apparently that padlock icon eliminates a lot of stress for his shoppers).

I then considered using CSS to try to accomplish the same result, but have come to find that IE doesn't support the function of CSS that would allow me to "call" information from a different URL. Code:

View Replies View Related

HTML Frames

i have these framesets.Code:

<frameset rows="*" cols="171,*" framespacing="0" frameborder="NO" border="0">
<frame src="index_left.asp" name="leftFrame" scrolling="NO" noresize>
<frame src="home.asp" name="mainFrame">
</frameset>

at index_left.asp there are menus and above the menu table, there is another table for me to display user's name once he/she logs into the system. to see the login page (login.asp), user has to click Login on the left and login page will appear on the right. but after user has logged in, his/her name never appear on the right place unless i refresh the page.

View Replies View Related

Session......frames

I have a frameset on domain X in which an ASP-page is loaded from domain Y
into one of the frames. It seems that the ASP-page is not handling any
cooky's. After each load the session-object is empty. When directly opening
the page from domain Y (without the frameset) everything works ok. Does
anyone knows why this is happening en what can be done to make it work?

View Replies View Related

Breaking Out Of Frames

I need to break out of the frames in the following line, or a line that does a similar thing:

Response.Write("<meta http-equiv=""Refresh"" content=""2; URL=http://localhost/MyWeb/Loanerz.asp"">")

View Replies View Related

Css Buttons With Asp And Frames

on a single webpage i know howto highlight the current button in a css menu with something like an ID in the body or in the li of that page.

I create a website with frames.

how can i highlight the current button the left frame when it shows the page in the rightframe Code:

View Replies View Related

Loading Frames

I've got an asp page that is set up in with two frames. The problem in question pertains to the main frame which contains a simple 'response.redirect' line that redirects the visitor to a different location. Other than this line, everything else are tags and no asp-oriented code.

I've tested this on a couple of computers, and it works fine. However, there are a few other computers in my office where the redirect just hangs and doesn't load the redirected page (i.e. the status bar states 'Open http://someurl.com' and stays like that)

Is this a problem with using the asp line, or is it a computer setting/browser setting I'm overlooking?

View Replies View Related

Changing Frames

My site uses frames.I have a header frame, a menu frame and a main frame. When the page opens, the header frame and the main frame are generic. The main frame has a log-in dialog. Once the user logs in, they are taken to a 'main' page and I want to replace the header and menu frames with other frames .

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

Update Frames

i am currently working on frames in ASP. i have four asp files namely frame1.asp, frame2.asp, frame3.asp and frame4.asp - i have separated an ASP page into two frames one in the left side named frame1.asp and the other on the right side named frame2.asp
i have specified a link in frame2.asp and passing a parameter along with that link. if i click that link it should replace both the left side frame frame1.asp with frame3.asp and as well as the right side frame frame2.asp with frame4.asp
is that possible?for your information, i pass the parameter along with the link in frame2.asp after contacting the oracle database table and retrieving some value from it.

View Replies View Related

Working With Frames

I would like to refresh a frame when an action takes place in another frame.

Suppose for example:

I use three pages page1, page2, page3 which are displayed in 3 frames frame1, frame 2, frame 3 respectively.

if click on some link in page1 it will open page2 in frame. this clicking should be captured immediately and displayed immediately in page 3 which is in frame 3. This should be done immediately as if it is live.

View Replies View Related

Virtual Frames

I have a page that i find hard to maintain, or add new pages to. It is tha navigation bars down the sides of all the pages. At the moment they are all just like, well a normal page, so when i want to add a new page i need to go through ALL of my pages and change them.

I know there is a way, but i dont know how, to make the asp file call another file and basicaly ask for what goes in the side navigation bar. I have seen this done, it would have used framed, but personaly i think they are evil, you can only stick them to the top, side botton etc.... of a page. And i have made my page so that it is in the centre of the browser.

View Replies View Related

Frames And Sessions

I am trying to prevent illegal access into my site. I am making use of frames. But when i try to redirect the user to the login page instead the login page appears in the frames. How do i go around this problem.

View Replies View Related

Two Frames In Web Page

I have added two frames to a webfrom using HTML.Can I call two other frames into these frames or do I have to do all the design in HTML code?

View Replies View Related

Multiple Frames

my website is an integrated application.I have a page with multiple frame.

frame1 , frame2 , frame3

a user can take the url of page in frame2 and can paste it in address bar of the browser.This will allow the user to view the page in frame2 to run independently.

This will defeat the purpose of my integrated application.Can i avoid this?

View Replies View Related

Html Frames

I am having two frames. Frame one consists a list box of batch codes(issue1.asp). The other frame consists of another combo box(empty),text box and a cmd button (issue2.asp).

As soon as i choose a batch code in the first list box(frame one - issue1.asp)
corrsponding students id should get added in second combobox of issue2.asp.

I can do this using listbox's onchange event. Is it possible to use actions in frame. If so how should i write the values in the second combo box ? but both the asp pages should appear as earlier. how can i perform this operation?

View Replies View Related







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