RTC Forums

Subscription => Support => Topic started by: Andrew.W on December 31, 2010, 03:13:55 PM



Title: Looking for really simple Cookie/Authentication example
Post by: Andrew.W 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,


Title: Re: Looking for really simple Cookie/Authentication example
Post by: D.Tkalcec (RTC) 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 (http://realthinclient.com/sdkarchive/index2d622d62.html).

Best Regards,
Danijel Tkalcec