IT Community - Software Programming, Web Development and Technical Support

session time

This is a discussion on session time within the ASP and ASP.NET Programming forums, part of the Web Development category; Hello, We can create a session by using session[] statement. How can we set a time for the session thus ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-25-2008, 12:00 AM
Kirubhananth Kirubhananth is offline
D-Web Programmer
 
Join Date: Feb 2008
Location: My native is Madurai but now in Chennai
Posts: 61
Kirubhananth is on a distinguished road
Send a message via AIM to Kirubhananth Send a message via Skype™ to Kirubhananth
Question session time

Hello,

We can create a session by using session[] statement.
How can we set a time for the session thus created. Thus it will automatically logout. Such as this discussweb forum.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-25-2008, 12:12 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: session time

Hi,

Go through the following link.It helps u to maintain Session,

ASP.NET: Using Forms Authentication in ASP.NET - Xoc Software (RVBA Conventions, Maya Calendar, et.al.)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-25-2008, 04:01 AM
Kirubhananth Kirubhananth is offline
D-Web Programmer
 
Join Date: Feb 2008
Location: My native is Madurai but now in Chennai
Posts: 61
Kirubhananth is on a distinguished road
Send a message via AIM to Kirubhananth Send a message via Skype™ to Kirubhananth
Question Re: session time

Dear mam,

Thank you for your help. I tried the given example in the webpage that was specified by you. While compiling i got no error. But while trying to run i got a error such as

Error 1 '_Default.btnLogin_Click(object, System.EventArgs)' is inaccessible due to its protection level E:\Kirubha\Examples\sessionex\login.aspx 24

I don't know which one is wrong. I am new to the DotNet environment. So please help me.

-Kirubha
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-25-2008, 04:59 AM
Kirubhananth Kirubhananth is offline
D-Web Programmer
 
Join Date: Feb 2008
Location: My native is Madurai but now in Chennai
Posts: 61
Kirubhananth is on a distinguished road
Send a message via AIM to Kirubhananth Send a message via Skype™ to Kirubhananth
Smile Re: session time

Sorry mam,
I myself found the error.
The button click event function was defined as private. So the form cannot access that function. I changed it to public function.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-25-2008, 09:27 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: session time

hi,
Its good.Whenever you get error regarding protection level,you have to check the access modifier(Private,Public and Protected).
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 02:04 AM
rrrajesh84in rrrajesh84in is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 399
rrrajesh84in is on a distinguished road
Default Re: session time

hi

By default the button click event should be used as protected..
__________________
.....................................
''''''
Rajesh''''''
Ants. . . . . . Like me
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
show clocks, one showing the current time, and another showing a time 12 hours behind itbarota HTML, CSS and Javascript Coding Techniques 1 02-13-2008 10:15 PM
How can I set the time zone for MySQL to UK time? itbarota PHP Programming 1 09-12-2007 01:13 AM
Destroy session using session ID Jeyaseelansarc PHP Programming 1 09-07-2007 07:42 AM
Relation between process system time, process waiting time vigneshgets Operating Systems 0 08-01-2007 12:57 AM
Diff between Transaction-time and Server response-time vadivelanvaidyanathan Software Testing 0 03-21-2007 07:29 AM


All times are GMT -7. The time now is 06:38 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0