How To Manage One Session Per Tab
Feb 3, 2011
I will like to imitate the behaviour of the site ClickBank.com, for example:Open the site, and login, if i open a tab with the same site, it ask me again to login.It makes me wonder how to manage one session per tab.Just to clarify, i don't loose control on the first tab if i log on in the new tab. They are separate sessions.
View 1 Replies
Similar Messages:
Oct 7, 2010
I want to be able to persist data across a session but do this outside of the built-in session state object. Why is a long story that I will not go into here. I just need to know where I can put data other than in the session object that will persist across the specific session.
View 3 Replies
Jan 3, 2010
I am working on a website and this is my first web project. Scenario for Session I have created a database for my project with security level little bit high. I want to manage session for each and every user who is logging in to my website. Session state can be used using Cookie as well as URL, only one at a time. Now I went over with all four session state modes. i.e 1. InProc 2. State Server 3. Sql Server 4. Custom
Now after reviewing from all these modes I am in confusion which one should I use Sql Server or Custom. Basically i want to store session related information in my own database instead of Aspnet_db which is a default database provided by microsoft. I have created all tables related to login and registration. But I dont know how to store session into my database. What tables do I need to create so as to maintain into database. I want to create a complete log of session and login related information into my database(Persistant atleast for 1 year). I want to use machinekey as AES and SHA1.
<sessionState mode="Custom" cookieless="AutoDetect" timeout="15" regenerateExpiredSessionId="true" stateNetworkTimeout="10" >
</sessionState>
<machineKey decryption="AES"
validation="SHA1"
decryptionKey="7E047D50A7E430181CCAF7E0D1771330D15D8A58AEDB8A1158F97EEF59BEB45D"
validationKey="68B439A210151231F3DBB3F3985E220CFEFC0662196B301B84105807E3AD27B6475DFC8BB546EC69421F38C1204ACFF7914188B5003C1DCF3E903E01A03C8578"/>
<add name="conString" connectionString="Data Source=192.168.1.5; Initial Catalog=dbName; Integrated Security=True;" providerName="System.Data.SqlClient" />
What all things do i need to specify in webconfig? My Data Source= 192.168.1.5 Database name= db.mdf What I need to know about. What tables do i need to add to my database to store session related information. eg. Session id (Any other field is also stored or not), Session Time, Session Start Time, Session End Time, Session Expire Time. I dont know what all things are usually taken. Do I need to encrypt Session Id
before storing into database. If Yes Encryption will be automatic or do i need to write some code to do this other than that I wrote in web config above. How mode='custom' will be used into web config using my database. in following code
<sessionState mode="Custom" cookieless="AutoDetect" timeout="15" regenerateExpiredSessionId="true" stateNetworkTimeout="10" >
</sessionState>
View 2 Replies
Mar 25, 2010
In my .NET web app, I keep basic user info in a user session object. I also usually keep a director class in the session; which is basically just has info about whatever thing it being worked on on that screen (like a customer id).
I am trying to keep from adding a ton of sessions. I also want to make sure at any given time ONLY the sessions that are necessary are in memory.
This means I need an effective way of managing my session variables.
View 6 Replies
Jul 19, 2010
I'm working on an ASP.NET MVC web application that will be deployed across multiple load-balanced servers. With this setup, a user might have one request served by server A and the next request will be served by ServerB or ServerC. We don't want to store Session Data in the database, as we're trying to minimise database hits where ever possible. As such, we need to have the HttpSession managed and stored on another server. My understanding is that this is possible by using a Windows Service that will manage this for me, but I'm unfamiliar with how to implement this. Can somebody point me at some good documentation on how to do this? Or any pitfalls or other points to take into consideration?
View 3 Replies
Aug 11, 2010
We have used Session heavily in our application, we have created core classes (which have many properties) and store objects of core class in the session.
1) What could be the best solution for reflector activity?
2) What could be the best way to manage session in an application which has 100 pages?
View 9 Replies
Mar 30, 2011
how to manage multiple sites on a session variable?
View 4 Replies
Apr 13, 2010
I have a problem to manage session variable in to different virtual directory. I need to access Session value from one virtual directory to another virtual directory. For Example I have a Web Site in my IIS with one page. Page 1
[Code]....
I have another virtual directory under the same Web Site with one page as follows.
Page 2
[Code]....
I can't access session value of Page 1 from Page2!I need to access Page 1 Session value from Page 2.
View 3 Replies
Oct 6, 2010
I've created a whole bunch of rather complex classes and now i'm starting to work on the ASP.net user interface. Basically the user will open 1 page which will be used to load, edit, save an object. The object has many fields and they are often other classes i've created. To create a nice interface i've used popups and used AJAX to reload parts of the page to avoid reloading the whole thing.
My plan was to create the object and save it to the session. Then each time the page is loaded copy the object values to the asp fields and do the reverse when the page has been submitted copying the asp values to the object field then updating the session object.
So the code will go something like:
onload:
if session is not null load from session otherwise create new
this.txtID.text = object.id
this.txtName.text = object.name
etc etc
on submit:
object.id = this.txtID.text
object.name = this.txtName.text
etc etc
update session.
Is this what you guys would do? or am i over thinking this, seems like a lot of code to load all the object fields each time the page is opened and submitted etc.
Just looking to bounce ideas of off other developers :D
View 4 Replies
Oct 6, 2010
HiMy web site uses 2 unmanaged DLLs (gsl.dll, cblas.dll). I put these dll's in the bin folder along with some other managed dll's. On my development system everything is fine when using the built-in dev server in Visual Studio 2010. However, when I run the site through my dev system's IIS instead of the Visual Studio server I get the following error:'C:<absolute path to bin folder>ingsl.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
View 8 Replies
Jan 6, 2011
I built a little web application that displays charts. I was thinking that it might be useful for the superuser of the app to do a complete data refresh, however this process takes around 10 minutes to complete. I was thinking perhaps the user could click a button that would start off a new thread to do a data refresh and subsequent clicks would kill the thread and restart the data population process. The user would then be free to browse about the site and view the charts as their data is populated.
Is there a simple method of accomplishing something like this?
View 3 Replies
Mar 10, 2010
I am currently moving into the web-hosting league. I have to far been adding sites manually in the IIS Manager. But I wonder if there exists an interface, framework or something similair to manage the IIS over the internet - eg. an ASP.NET web-application? I've read something with WMI, but I am unsure if this is the right path to go? I need to add, edit and delete sites in the IIS Manager on a Windows 2008 server running IIS 7.0 programmatically.
View 1 Replies
Feb 16, 2011
I am making a project for the university. When admission Starts, suddenly a lot of traffic comes at my site around 50000 to 100000 users. Site goes down therefore.
View 1 Replies
Aug 5, 2010
I am wanting to develop an application where there is a business requirement to keep a track of all changes made, so every time a record is edited, it is saved as a new record. So far, I have a Search form to list my Entities in a GridView. When I have identified the Entity I want to edit, I click on that record, and it takes me to a DetailsView form, with all fields of the record. Every record is identified as having an Entity key (ent_key), Sequence (seq_key) and Current key (cur_key). When I edit and save the Entity with say, ent_key =1000, seq_key =3, cur_key =1 and make any changes, then two things should happen:
1. the existing record (without edits) should be amended to be: ent_key =1000, seq_key =3, cur_key =0 (this 0 indicates that it is no longer current)
2. a new record including edits should be inserted to the database as having: ent_key =1000, seq_key =4, cur_key =1
The problems: In my DetailsView form, in Update mode I cannot update the seq_key, and when I use Insert mode, all the fields are blank so this is not helpful to the end user. (FYI - The data is stored in a SQL Server database, and I have set up a table adapter to retrieve the records. Am developing in C#)I would like to utilize stored procs where possible to resolve this issue. Would you experts please help me with some ideas (incl coding and examples if poss) to resolve this issue? Am reasonably new to this development, and I don't know what I don't know.
View 5 Replies
May 25, 2010
How do I increase the allowable time before my WCF request gives up?
My client program executes: -
Recordcount = GDBService.Chartdata1(_ChartType, _FoundIndiid.ToString, Selection, Chartoption, 0, _UserInfo.Userid, _UserInfo.Role)
This invokes an SQL procedure that takes up to 3 minutes to run when invoked from SQL Management Studio with the same argument values.
The default is 30 seconds.
I tried inserting <httpRuntime executionTimeout="300"/>
within the <system.web> section of web.config. This didn't help.
I tried writing this into the client program: -
GDBService.Endpoint.Binding.OpenTimeout = TimeSpan.FromMinutes(5)
Dim start As DateTime = Now
Recordcount = GDBService.Chartdata1(_ChartType, _FoundIndiid.ToString, Selection, Chartoption, 0, _UserInfo.Userid, _UserInfo.Role)
Dim finish As DateTime = Now
I found that Finish was always 30 seconds after Start. Ditto if I set ..."SendTimeout".
View 12 Replies
Oct 17, 2010
I haven't developed in ASP.NET for a very big while...
I'd like to create a website that will enable members to add content : let's imagine they have items to be sold, and they want to create one web page for each item to be sold. Those pages should be viewable by everybody, but should be editable only by the member who has created it of course. Each item should be stored in a category. In fact it's very similar to what eBay does (except it's not for auction at all), or maybe a site for classified advertisements like www.adoos.co.uk is a best example.
The application should be dimensioned to allow potentially millions of members, with few items (around 1-10) for each member.
I imagine to use the ASP.NET Membership Fx to manage security and user account, stored in SQL Server. Is it a good start?
But I don't have any idea about where and how to store the content itself (user's web pages, with optionally few photos)! In SQL Server? In Active Directory, how? Is a CMS framework the right tool to be used?
View 2 Replies
Aug 10, 2010
I'm creating a site with 2 different sections (main site and admin) and both of them need authentication. they have separate login screens.
the main section is for users to login and manage their personal details. this is already created and it works fine using FormsAuthentication.the admin section is for the administrator to manage the users. now, how do I go about creating the admin section? Can I use FormsAuthentication again? or sessions?
View 3 Replies
Feb 22, 2011
I have created a ManagerEntities like this:
[Code]....
Due to I want to have only one connectionstring for a few tables.Unfortunatly now I get error like this:"The model backing the 'ProjectManagerEntities' context has changed since the database was created. Either manually delete/update the database, or call Database.SetInitializer with an IDatabaseInitializer instance. For example, the DropCreateDatabaseIfModelChanges strategy will automatically delete and recreate the database, and optionally seed it with new data."I tried create class:
[Code]....
and add in application_start():
[Code]....
but after that...I lost all data from tables, and other tables are deleting...of course I tried create base manually too...
View 1 Replies
May 25, 2010
I've 2 pages and I've to send some ID from first to second page
I don't like to use sessione variables and cookies, now I've:
<asp:TemplateField ShowHeader="False" ItemStyle-Width="30">
<ItemTemplate>
<asp:Button ID="btnDetail" OnClick="btnDetail_Click" id1='<%# Eval("id1") %>' id2='<%# Eval("id2") %>' runat="Server" CausesValidation="False" Text="Dettaglio" Width="60px" />
</ItemTemplate>
[Code]....
Is there a solution for don't show parameters un browser URL and don't allow users to changes the ID and view other records?
View 2 Replies
Nov 15, 2010
i want to manage all the design of my website(asp.net) through my css. my client requirement is he should be able to change all design of website within 4-5 hrs.
View 3 Replies
Feb 15, 2010
I'm looking to be able to manage my users and roles online. So that I don't have to re create the wheel, is there a way I can upload the asp.net configuration tool for my website?
View 4 Replies
Mar 7, 2011
I'm planning to create a site for learning technologies, such as codeproject or codeplex. different ways to manage huge articles?
View 3 Replies
Nov 3, 2010
Say I need to develop a online cheese games and the game is just between computer and a real human player.
The req is to keep states (like steps,win history) usable even after the user closing browsers or server temp being offline in short time. Thus when the player goes back to the game page, he should be keep playing from what he played last time, and get his play history as well.
It is definitely need cookie to enable all this, but i m concerning about the security of using that. I should prevent ppl hacking the cookie directly to change the history or sth. My thought is to make the server end assign a token to client. All the steps and history data are associated with this token string and stored in a persistent layer (database).
Is it a overdesign , or there is a way to encrypt cookies.
View 3 Replies
Mar 9, 2011
I am creating a web service in asp.net. I not getting which one is better way to manage multiple classes with web service.
Two way in my mind but i am not getting which one is better.
1) Call all classes in single .asmx file.
2) Create different .asmx file for all classes.
paypal.sandbox.AddressType addressType = new paypal.sandbox.AddressType();
addressType.AddressID = "Your Address ID";
paypal.sandbox.DoDirectPaymentResponseType response = new paypal.sandbox.DoDirectPaymentResponseType();
response.TransactionID = "25554d";
I want to call my classeslike this from my code behind. I am not getting this how can i call like this.
View 1 Replies
Feb 2, 2011
I need to know how to configure the .config to manage Session state in SQL Server
View 2 Replies