|
We are using forms authentication in our applicaion to restrict unauthorised users from downloading the content.
In our application once a user enters the page, the forms authentication checks with cookie and then authenticates the user and allowing him to download.
The problem is once the cookie is being created, we are unable to delete the cookie or expire the cookie.
We've tried setting the time out attribute in forms tag in web.config file and also in code behind file. But still the cookie exist and the user is able to download the content even after the timeout period.
When we open a new browser window then also the earlier cookie remains and the user is automatically authenticated and able to download the content.
Its not creating new Session but using the earlier session.
Please help us...
VENKATESH
|
|
|
|
|
Are you using .net 2.0? I have a working web site that using the .net 2.0 login controls and the default cookie it creates. It all seems to expire without any issues. If you are doing your own cookies you will probably need to post some code for anyone to be helpful to you.
Ben
|
|
|
|
|
we are using asp.net 1.1
VENKATESH
|
|
|
|
|
GDay everyone,
I have a problem with Gridview that I really need someone's help.
I'd like to get data of the record at which user clicks on the select hyperlink of that record in GridView. I need to save it and use it to populate data of that record into another form.
Please give me a solution.
Thanks in advance.
eric
|
|
|
|
|
Here is an example:
<<asp:HyperLinkField DataTextField="FullName" HeaderText="Employee"
SortExpression="FullName" DataNavigateUrlFields="EncryptedUID" ItemStyle-Font-Size="10px"
DataNavigateUrlFormatString="~/Employee/EmployeeCoursesScheduled.aspx?id={0}" >
<</asp:HyperLinkField>
Michael
I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious.
Vince Lombardi (1913-1970)
|
|
|
|
|
Can anyone help me to start making a favourite lonks page just to get me started
|
|
|
|
|
You need two pages, right ? One full of radio buttons and one full of links for the button you pressed. What's not clear is, how are the links stored ? In a database ? XML ? hard coded ? A radio button list page is pretty trivial, and then each button needs, on click, to divert to the second page. The two ways to handle this are a cross page postback, or putting a variable on the URL, so that the second page knows which URLs to show. Again, it's not clear from the question where they come from.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thanks. yeah we need two two pages and yeah it neeeds to be hard coded
|
|
|
|
|
come on... start (hard) coding...
------------------------------
If u think u can, u can.
If u think u can't, u r right.
|
|
|
|
|
OK, so create one page with the radio buttons and have it redirect to the other page, and the other page would take a parameter, telling it which group of hard coded links to display.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
'Yo' is not an acceptable message title. Please read the forum guidlines.
-- modified at 11:58 Tuesday 15th May, 2007
[edit] And stop asking the same question over and over! [/edit]
__________________
Bob is my homeboy.
|
|
|
|
|
I noticed that the framework wraps the viewstate hidden input element into a DIV element.
Can anyone explain why it is done this way and how and if I can get rid of the div?
Can I place the viewstate hidden input at the bottom of the page?
Thanking you in advance.
|
|
|
|
|
No, I don't believe you can ( not easily ). Why do you want to ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
To be honest I have to serious reason.
I just like being in full control of what markup is delivered to the site visitor and little things like this one just annoy me.
|
|
|
|
|
Why don't you disable viewstate for the page ?
|
|
|
|
|
because i need the viewstate.
was just wondering why it is wrapped within a DIV.
|
|
|
|
|
Without this wrapper div ASP.NET wouldn't be able to produce valid XHTML Strict markup.
As for the custom viewstate hidden input placing - I don't think it is impossible to do this, but should be complicated enough to not be worth the effort.
|
|
|
|
|
|
Hi,
I am in need of a .NET calendar control that can use in my web application. If someone know of sample control or some sample source cod, please let me know. I have searched Google and have found no source code.
http://rentors.org/calendar.aspx?propertyid=9&culturename=en-US[^]
It also has to have left and right arrows to scroll through the years.
Regards
ma se
|
|
|
|
|
You need a javascript calendar, as that's the language run on the client. There are tons on the web.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
It needs to connect to the database, how else are you going to know which dates were booked or not??
|
|
|
|
|
It needs to be javascript, otherwise you can just use a datagrid and postback on each click.
So, the answer is that it needs to be set up in the C# code, to show the right dates as booked, or use AJAX. It's possible that none of the calendar controls out there will do it out of the box, you may have to modify one
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yeah but I searched for something every where. Don't you know of anything??
|
|
|
|
|
|
I don't think you understand what I am looking for??
When a property is booked, the date is saved. So when the next rentor comes along and wants to see when that property is booked, then a calendar (like in the link) is displayed to the user. You understand??
|
|
|
|