4,124 Topics

Member Avatar for
Member Avatar for k.vijayakumar

hi, when session expires i want to give message and send them to my login page.for this where i have to write the code. thank you

Member Avatar for carobee
0
134
Member Avatar for mundetas

Can someone please help. I have a rollover image and when you click it takes you to a page. But I want it to remain on the same page. I want it to display data from a db. But should appear on the same page where the button is. So …

Member Avatar for Menster
0
135
Member Avatar for sonia sardana

I have currently two forms in mine website..I m also posting their codes-- FrmRegistration.aspx [code] public partial class FrmRegistration : System.Web.UI.Page { SqlConnection conn = new SqlConnection("Data Source=SONIA-B408A4159\\SQLEXPRESS;Initial catalog=sonia;Integrated Security=true"); string query; SqlCommand cmd; protected void Page_Load(object sender, EventArgs e) { btnSubmit.Attributes.Add("onclick", "Javascript: return Validations() "); } protected void btnSubmit_Click(object …

Member Avatar for sonia sardana
0
306
Member Avatar for sandeep_1987

Suppose the user login by entering his or her details When clicking on Login button, I m setting the session variable [code] Session["UserName"] = txtUserName.Text; [/code] I want dat when he or she clicks on sign out(hyperlink)..I want to expire the session, can somebody tell me how to expire the …

Member Avatar for dnanetwork
0
99
Member Avatar for andrei4002

hello everyone i have a huge problem developing a windows service i'm trying to develop some app that reads information from WMI and sends it via amqp (using apache qpid client) everything [B]works fine[/B] on [B]windows xp[/B], but problems appear on [B]vista[/B]: when i start the program i get an …

Member Avatar for andrei4002
0
120
Member Avatar for mahela007

Hi.. I'm just curious as to how one would set about writing some python code to monitor the network usage in one session... The program should simply record how much data has been downloaded from the time the computer is switched on to the time it was switched off. What …

Member Avatar for willygstyle
0
3K
Member Avatar for seangdy

Here is my code: <title>Hanuman Database</title> <div align="center"> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="10"><img src="../images/bg_up_exp_left.GIF" width="20" height="20" /></td> <td width="722" background="../images/bg_up_experience.gif">&nbsp;</td> <td width="10"><img src="../images/bg_up_exp_right.gif" width="20" height="20" /></td> </tr> <tr> <td background="../images/left_bg.gif">&nbsp;</td> <td><table width="758" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="../images/logo_1.jpg" width="96" height="122" /></td> </tr> <tr> <td><?php [B]session_start();[/B] echo "Global …

Member Avatar for seangdy
0
84
Member Avatar for milhero

Hi Professionals, I found these tutorials and codes regarding 'Retrieve E-Mail Through POP3' on an e-book entitled 'Microsoft Visual Basic .NET Programmer's Cookbook'. I understand what each functions/codes are but how do i design the GUI/interface to fit the codes? Please advise. Thank you in advance. Best Regards, Md Azmil …

0
70
Member Avatar for shankbond

Hi, I am a bit confused with sessions, I have read somewhere that session values get destroyed after the session is expired ; to test that i created two web forms each generating session values on page load, also i capture browser session id by: session.sessionid(); I am using mozilla …

Member Avatar for dnanetwork
0
82
Member Avatar for k.vijayakumar

[code]Protected Sub Application_PreRequestHandlerExecute(ByVal sender As Object, ByVal e As EventArgs) If Session("LoginName") <> "" Then Dim strCacheKey As String = Session("UserDetails").ToString() Dim strUser As String = HttpContext.Current.Cache(strCacheKey).ToString() End If End Sub[/code] i used this in global.asax and [code]If Not IsPostBack Then Dim strConCat As String = txtLoginName.Text 'TxtUserName.Text + TxtPassword.Text …

Member Avatar for kvprajapati
-1
103
Member Avatar for Shaitan00

I currently have a Windows Service written in C# .NET 2.0 which is automatically started and runs under the LocalSystem account - lets call it Serv.exe - this service is responsible for performing administrative tasks (a bunch of them). There is another application (lets call it A.exe written in C++) …

0
87
Member Avatar for aycmike

When a user logs in that has the same password as another user the latest person to register with that passwords details are revealed, im struggling to make it check that the username and password are connected and only if the username and password match should that users details be …

Member Avatar for cheapterp
0
137
Member Avatar for mundetas

Hey can anyone please help me :S . I have created a user table with different levels for instance type 0 to 2. If the user is type 1 then a certain page will open . I have placed my values in sessions then used a condition to verify. Please …

Member Avatar for mundetas
0
94
Member Avatar for rajeshsprabhu
Member Avatar for culebrin

Hi, I have 2 projects, the business entity, there I have all the classes mapped from the database and the web project where I fill those business entity classes. Then, I need to store in a DB. I have the globalization set in the web.config on the web project. (VS2008, …

Member Avatar for sknake
0
134
Member Avatar for dwdata

Hello, I am trying to work out a PHP page which establishes a sequenced rotation of ADS. Here is the code so far. There are some elements missing that need help with. [CODE]<?php include("core.php"); session_start(); $type = $_GET['type']; $category = $_GET['category']; $User = $_SESSION['MEMEBER_ID']; $Type = "image_imp"; // Get Initial …

Member Avatar for blocblue
0
90
Member Avatar for Tekkno

I have a cookie script that creates a cookie from a session variable, the only problem is when the session is destroyed the cookie is deleted even though I set the expiration to a year. What can I do to prevent this?

Member Avatar for Tekkno
0
98
Member Avatar for hajjo

[CODE]<html> <head> <script type="text/javascript"> function formValidator(theForm) { if (theForm.location.value == "") { alert("Please choose a location"); theForm.location.focus(); return (false); } if ( ( theForm.browser[0].checked == false ) && ( theForm.browser[1].checked == false ) && ( theForm.browser[2].checked == false ) && ( theForm.browser[3].checked == false )) { alert("please choose a subscription …

0
58
Member Avatar for phpbeginners

Hi all I am new in php, I want to block the user to return on the previous page? suppose I have page1 when he/she goto page2 he/she cannot return to page1 (session of page1 expired) thanks to all.

Member Avatar for phpbeginners
0
136
Member Avatar for ehsankhan2000

I am running this code It is giving an error which is out of my understanding CODE: [code=jsp]<html> <head> <title>Login Page</title> </head> <body bgcolor="#C0C0C0"> <form method="GET" action="http:\\localhost:8000\login_page.jsp"> <marquee style="font-family:Arial;font-size:14pt;color:#800000;fontstyle: italic;font-weight:bold">eResource System -----&gt;The World of Learning</marquee> <table border="1"width="100%"> <tr> <td width="18%"> <p><font face="Arial"size="2"color="#800000"><b><a HREF="home_page.htm">Home</a></b></font></p> <p><b><font face="Arial"size="2"color="#800000"><a HREF="chart_toppers.jsp">Chart Toppers</a></font></b></p> <p><b><font face="Arial"size="2"color="#800000"><a HREF="search_home_page.htm">Search</a></font></b></p> …

Member Avatar for kvprajapati
0
81
Member Avatar for bratbo

Is there any way to ensure that a particular code is executed when a session ends e.g to remove temporary files og database entries ? similar to the Session_OnEnd in the global.asa file in an asp application ?

Member Avatar for thewebhostingdi
0
126
Member Avatar for ricksvoid

Although im not new to asp.net, this will be my first e-commerce project. Any thoughts on using paypal? Im very tempted to use it for the sheer simplicity alone. any downfalls? Ive never built my own shopping cart but i could probably figure it out using session states and what …

0
95
Member Avatar for mynameis

I have an uploading script but i don't know what is the problem it always gives "Error". Here is the script [ICODE]<?php include ("include/session.php"); $username = $session->username; if ($_REQUEST[completed] == 1) { $newname = $username . ".gif"; move_uploaded_file($_FILE['mailfile']['tmp_name'], "./$newname") or die("Error"); } ?> <?php if ($_REQUEST[completed] != 1) { ?><b>Please …

Member Avatar for sDJh
0
97
Member Avatar for jeyakannanrd

Please help me. I got this error while uploading in Server. I developed this code in windows based. But the deployed server is Linux Server. In windows server i didn't get this session error. Here is my code: [code=php]<?php session_start(); require_once('l2t_connect.php'); if($_GET['action'] == "send") { if(isset($_REQUEST['btnSend'])) { $key=substr($_SESSION['key'],0,5); $number = …

Member Avatar for cwarn23
0
118
Member Avatar for alsoumhi

Hi experts , I got problem and need help please. I have created a servlet sends a message to the client, I have tried to attach a text file with message being sent but I couldn't do that. please help me how to attach a file with a message. is …

Member Avatar for peter_budo
0
78
Member Avatar for wblakenc

Hello all, I have run into an issue with an JavaScript expand menu (you click a menu option a sub-menu shows, moving the other main navigation menu options down). Well I have designed a nice custom script to do just this. The problem is, how do I keep that sub-menu …

Member Avatar for wblakenc
0
111
Member Avatar for spoinkgeek

hello im doing this assgment.need a solution urgently! Animal Show is organized. There are 2 sessions for the show, which are 2pm-4pm and 8pm-10pm per day. There are only 50 tickets available per session per day. For the show, a ticket for an adult sells for RM10 while for a …

Member Avatar for mypicturefaded
0
378
Member Avatar for shankbond

Hi, I am having a web application, which can be accessed by different users based on their userid's and passwords. Now I want to prevent users from accessing the application from more than one system. In order to prevent this I have created a[B] table with three columns [/B]as : …

Member Avatar for shankbond
0
177
Member Avatar for itisnot_me

ok something went wrong and i cannot for the life of me figure it out. my login script which also logs out will not unset the name and admin i set for it. also on top of that if i do use a session_destory and login again it does not …

Member Avatar for itisnot_me
0
103
Member Avatar for arunajasmine

in my application i am using Ajax post like [CODE] $('#fb_contentarea_col3 #fb_contentarea_col1down2 #saveForm').live("click", function(){ if(!$("#formName").val()==""){ if(saveDraft=='on') status="Incompleted"; else status="Completed"; var formname=$("#formName").val(); $.ajax({ type: "POST", url: "http://localhost/FormBuilder/index.php/forms/saveForm/", async: false, data: "formname="+formname+"&status="+status, success: function(msg){ getformid=msg;//returned FOrm id is saved in the JQuery variable }//success });//ajax $("#fb_contentarea_col1down21 div").each(function() { alert("Form id "+getformid);//alerts me …

Member Avatar for arunajasmine
0
149
Member Avatar for C.c

can help me ?? i want to loop to "Please choose the section you want" after all the calculation, but it only loop to "key in the number of adults"..Please help.. #include <iostream> using namespace std; int main () { int adults1, childrens1, adults2, children2, adultstotal, childrentotal, choices, total_ticket1 = …

Member Avatar for ithelp
0
118
Member Avatar for alsoumhi

Hi experts, I am having a problem with sending mail from servlet I have written this code : [code=Java] import javax.mail.Session; import javax.mail.Message; import javax.mail.Transport; import javax.mail.MessagingException; import javax.mail.internet.MimeMessage; import javax.mail.internet.InternetAddress; import java.util.Properties; public class EmailSenderDemo { public static void main(String[] args) { String from = "ali@mlabs.com"; String to = …

Member Avatar for kvprajapati
0
127
Member Avatar for Dukane

I have an Asus Eee 900A with Ubuntu NBR 9.04 installed. When I installed the system, I made one partition on the internal SSD and mounted as /. I left 32 MB for swap space. I mounted the /home directory to a 16GB SD card installed in the memory card …

Member Avatar for Dukane
0
322
Member Avatar for shawn.bordeaux

I have a web application for recording time, bonuses and commissions for employees. I am having a hard time joining three tables together. Here are the tables: employee - provides employee information including the primary key emp_id emp_timecard - provides recorded time from employees tc_bon_com - provides bonuses and commissions …

Member Avatar for sknake
0
113
Member Avatar for spalax

Hi, i'm trying to read a simple email file from a folder in my computer. I find this code but, it's not working. i didn't understand theses lines: what should i write for mail.host? what should i write for "mail.transport.protocol", "smtp"? props.put("mail.host", "smtp.gmail.com"); props.put("mail.transport.protocol", "smtp"); [CODE] import java.util.*; import java.io.*; …

Member Avatar for spalax
0
3K
Member Avatar for kprashant1307

I want to send another ajax request when one request is in process to get the status of first request. This is working fine if no session data is set before calling the request. If I set data in session and then call both the request the second request gets …

0
61
Member Avatar for aditi_19

Hi, I have created logout.php page which destroys all the session variables. Basically i want the the user to get directed to the Login page after logout button is pressed. But when the BACK button of the browser is pressed(even after logout), the user is still able to see other …

Member Avatar for aditi_19
0
202
Member Avatar for gurupatil8

HI sir.. plz help me to solve this problem. i write this code in jsp.. m getting image from database but the other HTML and JSP code i.e buttens and some output messages Thanks in adv... [code=jsp]<?xml version="1.0" encoding="UTF-8" ?> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <%@ page language="java" …

0
58
Member Avatar for CeJay

Hi All Ok this is a bit of a doozy for me. Work related question, I have been tasked with sorting out this issue at work, but don't really have much background in this field, but theres no one else in my team that can do it. Bit of a …

Member Avatar for jimmyread
0
146
Member Avatar for HughLa

I can't get my sessions to work on my hosting account even though I had my site running perfect on my machine's xampp setup. The sessions just won't last at all. I dont know what the problem is. Is there a setting I have to change or something to make …

Member Avatar for chrishea
0
53
Member Avatar for itisnot_me

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to …

0
42
Member Avatar for skipbales

I read all the thread on a similar post from 2006 but did not find an answer there. I can not redirect on my localhost (Apache) or on my hosted site (Apache). I was using a function created in a php course I took then switched to a basic piece …

Member Avatar for skipbales
0
91
Member Avatar for Sethron

I created a login and registration page with the following code, but it seems to have a syntax error at the command prompt "die ()", and I'm not sure as to how to fix it? Name the table "dbUsers." It will need 4 fields: Name Type Addition id int(10) Primary …

Member Avatar for otakua
0
170
Member Avatar for dpreznik

In my Page_Load() I have the following code: [ICODE]Button btnCancel = wizSummaryDetails.FindControl("FinishNavigationTemplateContainerID").FindControl("CancelButton") as Button; btnCancel.Attributes.Add("onclick", "setSessionAction('NONE');"); [/ICODE] Also, I have the following function that handles clicks on the same button: [ICODE]protected void DetailCancelButton_Click(object sender, EventArgs e) { wizSummaryDetails.MoveTo(wizStepSummary); Session["Action"] = ACTION.NONE; LoadData(); } [/ICODE] But if I have that part …

Member Avatar for jbisono
0
125
Member Avatar for mellomel70

Hi - I have some VB code that I'm trying to translate to c#. The code has a few WMI calls in it, and I'm stuck. Specifically, my VB code has the following: [code=VB] 'identify remote sessions Dim strComputer As String = "." Dim objWMIService As Object = GetObject("winmgmts:\\" & …

0
65
Member Avatar for Kusno

Dear all, I have a problem for my session state. Previously, I used session state InProc, but because CPU usage was very high cause IIS sometimes restarts, so I changed it to SQLServer. but now, session doesnt want to expire even I set timeout to 1 minute !!!. this is …

Member Avatar for kameswari
0
128
Member Avatar for somedude3488

Recently, I started on a new venture in which many sites will be built off the same base files. Pretty much if I change one file it will affect all of my sites. This has its ups and downs, but since the ups outweigh the downs I am going to …

Member Avatar for somedude3488
0
160
Member Avatar for shailesh_singh

i am making a web site that is based on online examination in that i have pro is that how can i imlement the time when a student click on start button after his login.

Member Avatar for Ramesh S
0
35
Member Avatar for sleign

hey I'm having a problem trying to get some variables passed on a form to another page where the processing is handled. basically what I'm trying to do is display the titles of pages from a website that are stored on a mysql database. those titles are passed thru a …

Member Avatar for sajif
0
171
Member Avatar for sureronald

How do I run the gabbage cleaner function in a session class from within the PHP framework. I use GNU/Linux and I have done it through CRON. Any scheduling library available in PHP? Any help will be highly appreciated.

0
61

The End.