RTC Forums
April 28, 2024, 09:29:59 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Looking for really simple Cookie/Authentication example  (Read 3362 times)
Andrew.W
RTC License
***
Posts: 43


« on: December 31, 2010, 03:13:55 PM »

Hi Daniel

My application has console pages. I'd like to have the user (quite often me!) to be forced to enter a password before accessing any of the console pages. The console pages are currently hidden behind a firewall but I need to make the accessible on the Internet.

I'll then give the browser a cookie. When any page is accessed, I want to be able to ask for, and receive, the cookie back so I can verify this.

Can you recommend an example, of give me a few pointers?

I don't know if it matters, but my app does not use the session management that's part of RTC.

Cheers,
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: December 31, 2010, 03:21:08 PM »

You need to have some kind of Server-side storage. This could either be done using RTC Sessions or something else you implement yourself.

Here is simple example which demonstrates the use of HTTP Cookies, utilizing RTC Sessions for Server-side storage.

Best Regards,
Danijel Tkalcec
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.022 seconds with 16 queries.