hi sudhanva
I got a prob in my project. wen i login to web site, the default.aspx wil be displayed. In this page a Link Button is there(in which confidential documents are there), wen i click this button it should show login page again, so dat authorized person should open it. The username is in session. I redirected it then same cyclic process is going on ( again i login if click link button again login) wat to do??
protected void LinkButton3_Cli ck(object sender, EventArgs e)
{
FillRepeater();
}
public void FillRepeater()
{
//int startRecord = (int.Parse(Curr entPage.Value) - 1) * int.Parse(PageS ize.Value);
mvUser.SetActiv eView(viewProdu cts);
//DataSet ds = ConDB.GetProduc ts(startRecord, int.Parse(PageS ize.Value));
DataSet ds = ConDB.GetProduc ts();
rptProducts.Dat aSource = ds;
rptProducts.Dat aBind();
//foreach(Repeate rItem i in rptProducts.Ite ms)
//{
// ImageMap m = (ImageMap)i.Fin dControl("img1" );
// DateTime dt=DateTime.Now .AddDays(-1);
// TimeSpan ts=DateTime.Now-dt;
// Page.Cache.Add( "i1", m,null, dt,TimeSpan.Zer o,CacheItemPrio rity.High, null);
// }
}
2 939
Close the current session by clearing all session objects and also clear the web page history when you click log in button and reset session objects.
Frinavale 9,735
Recognized Expert Moderator Expert
I'm a bit confused:
A user logs into your website, then then click a link button...why do they need to log in again?
You should consider using Roles Management. This will help you determine what security context the user's account has (what permissions the user has) in order keep restricted materials confidential.
-Frinny
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Sniffer-Dog |
last post by:
Hi
I just wondered if anyone can spot anything wrong with the following?
I have now added the session_start(); as the first command in the code
to all the pages needing it.
When I click on a webpage that is restricted, it takes me to the login
page fine. When I login though instead of taking me to the page I
clicked previous to that, it always takes me to the index file, and
when I try to then click on the page I wanted to go to, it...
|
by: Simon |
last post by:
Hi,
I have a Login.php page that logs the user in and out.
I has two forms within the page, (depending on what we are trying to do),
either one to log in or out.
The form calls itself using a post method and either logs the user in our
out given the information from the form.
but every pages use sessions and cookies, if the user is successfully logged
in then the cookies and session values are updated, (as well as MySQL).
|
by: John Davis |
last post by:
I put a little login (username and password textfields) in a web page, and
once the user able to login, I want the username and password textfields
will disappear, and replace with text " has Login!]" in the same
position.
My question is how to make the username and password textfields disappear
and replace with " has Login!]" in the same position?
This is the code I have done so far, but it has another problem: Even I
first check if...
|
by: Mike |
last post by:
I can not figure out what is going on here. I hope somebody can please
help!!!
I've got an intranet ASP3 application running on a Win2k server. This
application requires a login, so the user must first go to the login.asp
page before accessing any other .asp page. I have set up a redirection
method so that if a user pastes a URL to an internal .asp page, I store the
URL in a session variable, then I direct them to the login page. After...
|
by: Wayne Smith |
last post by:
Applies to: Microsoft FrontPage 2000, Microsoft Access 2000, IIS 5.0
Operating System: Microsoft Windows 2000 Professional
I am trying to protect a portion of a web site by allowing users to register a username and password & then login with those details, but so far I am having only marginal success. I am far from an expert on ASP programming, indeed the code I am using comes from "Sams Teach Yourself E-Commerce Programming with ASP" but it...
| |
by: Tom Loach |
last post by:
Our system administrator set up an NT server group in order to allow
our users to login to our application via https to our sql server.
The group appears as a User in SQL Server when you look at it in
Enterprise Manager. That said, I can not see the users associated
with the group from Enterprise Manager, but know they can login to the
database.
The problem is this. When we login via the web we get access to the
database without...
|
by: Rujuta Gandhi |
last post by:
Hi All,
I am facing a very crucial problem. Im developing a web application
using .net studio 2005(beta).
I want my Login.aspx page to be secured(https) for encrypted login
information transfer. I modified web.config and properties of Login page
from IIS server. And now when ever the execution is redirected to Login.aspx
It is having https as its protocol.
|
by: xcelmind |
last post by:
Hello Dev. Guru,
I want to at this time introduce myself. I am Stanley Ojadovwa by name.
I知 a freelance and a newbie in web application development. I知
currently using ASP as my application server technology with Microsoft
access as my database source.
Just as I have introduced myself, I知 a newbie in web application
development. I知 currently working on an application that will allow
|
by: RN1 |
last post by:
I am working on WinXP Pro SP3, .NET 2.0 & SQL Server 2005 (Windows
Authentication). When I run a ASPX page that connects to SQL Server,
the following error gets generated:
Login failed for user 'RON\ASPNET'
where RON is my machine name. I came across a few posts which
suggested adding RON\ASPNET as a User in SQL Server Management Studio
Express (under Security--->Logins node). I did so but that didn't
resolve the problem.
|
by: DavidPr |
last post by:
When I logout as one user and log in under a different user, it opens with the last user's information.
User 1 - Unsername: Davey Jones
User 2 - Unsername: David Smith
I log out from Davey Jones, then login as David Smith the Welcome message below will show "Welcome Davey". And it will be Davey's information that is accessible - not David Smith's. So something is amiss but I don't know what.
(BTW, this login script is based on the...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project用lanning, coding, testing, and deployment謡ithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |