Skip to main content
Inspiring
June 24, 2008
Answered

using inbuilt login security to send user back to login page

  • June 24, 2008
  • 4 replies
  • 447 views
I'm using CF's inbuilt security to login users to my site. User's are logged out after timeout period of 30mins. All controlled by application.cfm

The trouble is, if the user happens to be on a page with frames, and the timeout occurs, both frames on the page show the login screen.

Is there a way around this ?
This topic has been closed for replies.
Correct answer Dax_Trajero
I've googled what you asked and found several solutions. Thank you.

4 replies

Dax_TrajeroAuthorCorrect answer
Inspiring
June 25, 2008
I've googled what you asked and found several solutions. Thank you.
Inspiring
June 25, 2008
the layout you describe can be fairly easily achieved with css and maybe
a tiny bit of javascript... try googling "css frames layout".
i will see if i can dig up some good links in my bookmarks...

if you go a bit further into javascript, you can probably make it look a
lot better than frames, too, with custom scrollbars for the lower div,
pagination, etc etc...

hth


Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Inspiring
June 25, 2008
firstly, thanks for taking the time to reply. I think I've cracked it - on the page using the frameset tag, I've checked to see if the user is logged in, and if not, use CFLOCATION to goto a frame free page

On a separate note, you bring up an interesting point about the obsolesence of frames, but my lack of experience limits me from choosing an alternative. Can you tell me if there is an alternate way to do the following:

Curret situation:
Image your draw a horizontal line across the middle of your display, separating the upper and lower halves. The top half of the screen shows an important illustration and a selection box THAT MUST ALWAYS BE SHOWN. When the user clicks a new item in the selection box, the appropriate database rows are displayed in the lower half of the screen. Typically 20 or more rows are retrieved, so the user must scroll down, so the important illustration disappears from view.

Frames version
So I created a frameset page to contain frames for the upper and lower half of the screen. Tthe important illustration and drop-down boxes in the upper half of the screen. In the lower frame I show the database rows. The users can scroll through the rows and the important illustration remains fixed as I need it to be at the top of the screen.

Can you suggest a clean method relying solely on good old html / css that provides the same functionality as the frames verison above ?

Here's kind of what I'm looking for (except I don't need the fixed footer):
example
Inspiring
June 25, 2008
one thing you can try is put some js code in your login.cfm page to
break out of frames. plenty of examples of such code online

of course, that will only work if your users have js enabled in their
browsers...

another option is to stop using frames. their will no longer be
supported in HTML5 anyway. high time to switch to css layouts...


Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/