473,379 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Remember theme on session timeouts

(using asp.net 2.0)

Hi,

I have 5-6 large customers each using the same pages, but with their own
themes.

To enter my site, they all have their own urls like ...

http://mysite.com?site=customer1
http://mysite.com?site=customer2
http://mysite.com?site=customer3
and so on.

When they start a session, I test for the site querystring and sets the
theme accordingly. I store their theme in a session variable.

My problem is, when their session times out, I can't tell what theme
they should see.

I can't use cookies to store their theme, because of security/privacy
reasons. Therefore I can't use profiles.

My idea was to add a "site=customerX" to all my urls, but I need a
simple way to add this querystring to all my rendered urls.

Is there a more simple way?

Do you have a better suggestion how to solve this?

Thanks in advance!!!

Mojo

May 23 '06 #1
1 1176
I think you may consider using Cache object or even using Application
object to store their theme information (provided that you have unique key
values for each user such as DOMAIN(MACHINE)\UserName or some hashed value
like that etc.).
"M O J O" <na@na.na> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
(using asp.net 2.0)

Hi,

I have 5-6 large customers each using the same pages, but with their own
themes.

To enter my site, they all have their own urls like ...

http://mysite.com?site=customer1
http://mysite.com?site=customer2
http://mysite.com?site=customer3
and so on.

When they start a session, I test for the site querystring and sets the
theme accordingly. I store their theme in a session variable.

My problem is, when their session times out, I can't tell what theme they
should see.

I can't use cookies to store their theme, because of security/privacy
reasons. Therefore I can't use profiles.

My idea was to add a "site=customerX" to all my urls, but I need a simple
way to add this querystring to all my rendered urls.

Is there a more simple way?

Do you have a better suggestion how to solve this?

Thanks in advance!!!

Mojo

May 23 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tim Meagher | last post by:
I am trying to use Forms Authentication for a web page with cookies and a session state. I'm getting a little confused about how to use both and how the timeouts work. My goal is to have a web...
3
by: Craig Storey | last post by:
I have a form where users logged in using sessions can edit articles in a WYSIWYG editor. Some of them take their time and don't like to save their work very often and occassionally the sessions...
2
by: mircu | last post by:
Hi, I need a quick solution to make my application behave correctly when one of these timeouts occurs. I have some logic in session_start but when the authentication cookie timeouts the user is...
1
by: - Steve - | last post by:
I use forms based authentication and I've been putting the username in Session State (Session). Then when a user posts I check that Session != null else I Session.Abandon() and...
2
by: Fraijo | last post by:
how can i disable session timeouts without affecting any program codings?
3
by: M O J O | last post by:
(using asp.net 2.0) Hi, I have 5-6 large customers each using the same pages, but with their own themes. To enter my site, they all have their own urls like ... ...
1
by: Ron | last post by:
I have an application that requires a login at each visit to the site and can only be accessed by a login. A user can have different themes depending if it was assigned in there profile. Theme...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
11
by: assor | last post by:
I have a website and I,m using a an application theme that consists of a skin and a cascading style sheet and I have vriety of master pages and it works fine. I use in my site a log in with...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.