4,124 Topics

Member Avatar for
Member Avatar for u8sand

Hello guys, I'm creating my own website-it's coming along very well but I'm stuck. There is a login, so that you can login to your account. Each account has an access of 1-10, if your access is 0 you are not logged in. When you put your username and password …

Member Avatar for venkat0904
0
133
Member Avatar for amer2812

hey everybody i have question regarding JSP i'm new to this language and it's required from me to send emails by jsp and i'm using dreamweaver for that i worked and did the codes but still get errors: type Exception report message description The server encountered an internal error () …

0
52
Member Avatar for infernojmd

Im trying to use session variables to save the puzzle key, and than open a new file that prints it out, but it gives me Notice: Undefined index: puzzleName in C:\Apache2.2\htdocs\users\jmdrenning0\wordfind\wordfindkey2.php on line 13 i have no idea what it means, any help please. wordfind.php [CODE] function printPuzzle(){ //print puzzle …

Member Avatar for infernojmd
0
147
Member Avatar for sen1978

<?php session_start(); //Check User Session include ("includes/check_session.php"); include 'includes/config.php'; $current_module = 'MATERIALREQ'; //$related_modules = array('BIDDINGENTRY','PIRRAISING','POLIST','BIDDINGSELECTION','GRV'); include ('includes/check_acl.php'); //include 'includes/config.php'; include 'includes/sqlquery.php'; include 'includes/message.php'; $valid = ''; $current_user_id = $_SESSION['associate_id']; //if the session value is present, set whether the last transaction is stored or not if (isset($_SESSION['mrmsg']) && ($_SESSION['mrmsg']!='')) { $valid …

-1
76
Member Avatar for xuexue

hi guys, just wanna ask, could you give me some code about session time out? i have a different page for login and index. any help would be very much appreciated. thanks in advance ^^

Member Avatar for kvprajapati
0
105
Member Avatar for AirGear

i'm a newbie in php and maybe my question is so silly. i tried to create a session in a file named login.php [CODE]<?php include "koneksi.inc.php"; $name=$_POST['name']; $password=$_POST['password']; $hasil=mysql_query("SELECT * FROM TabelPegawai WHERE nama='$name' AND password='$password'"); $row=mysql_fetch_array($hasil); if ($row[nama]==$name AND $row[password]==$password) { session_start(); $_SESSION['namauser']=$row[nama]; $_SESSION['passuser']=$row[password]; $_SESSION['level']=$row[jabatan]; if($_SESSION['level']=="Manager") {header("location: manager.php");} else …

Member Avatar for AirGear
0
186
Member Avatar for pandeyprashant

Hello every one, i m trying to use session in jsp application for remembering username from one page to another. it is working fine but when i use hyperlink to come back to home page the username becomes null. please help me how to remember username when user is using …

Member Avatar for javaAddict
0
3K
Member Avatar for SKANK!!!!!

i found that your supposed to use this: session.gc_maxlifetime but i dont know how. does anyone know how i can destroy a log in session so the user wont be logged in 30 minutes later. ?

Member Avatar for SKANK!!!!!
0
265
Member Avatar for CFROG

I'm trying to display a menu option only for certain session id's and for some reason it displays for ALL session id's ... not just the ones i have indicated. Not too sure why it's doing this, it all looks okay to me. [code] <?PHP if(isset($_SESSION['user_id']) && $_SESSION['user_id'] == 1 …

Member Avatar for EvolutionFallen
0
187
Member Avatar for ihatehippies

Here's my problem. I wx application that works great until I close it (leaving the idle editing session open) and then restart it. Then parts of the program see variables that should be things like 'wx.panel' as PyDeadObj .... Once I restart the idle session and re-run the program it …

Member Avatar for ihatehippies
0
140
Member Avatar for Kristysos

I don't know why it kept appear this error: The name 'LogoutBT' does not exist in the current context. All my textboxes and buttons do not exist in the current context Please help me. Thanks. using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using …

Member Avatar for mailme.vibin
0
156
Member Avatar for blindkilla

When my servlet creates a session, even if it is the first time running the servlet, the session.isNew() returns false. I checked to make sure the session ID's are different each time I run it and they are, yet isNew() still returns false. I'm trying to do the following in …

Member Avatar for peter_budo
0
467
Member Avatar for phouse512

Hello, I've been using a book to learn php, and when I try to make it work for my own use, there seems to be an error when I try to login. First it says that the log in is invalid, and it comes up with this warning message: [b]Warning: …

Member Avatar for phouse512
0
233
Member Avatar for love_dude1984

hi, how can we create a new session? n i also want to knw how can i generate a new session id everytime i visit a page. even if i use Session.clear/Abandon method, it generates a same session id everytime i visit the page. hoping for a reply soon Thanks

Member Avatar for Ramesh S
0
164
Member Avatar for nikichu

Hi alll...... i am trying out a login form where in which i have multiple users... i have redirect each user to differnt pages..... ....but im stuck in the middle....... please help me out..... <code> page1 session["user"]=txtuser.text page2 welcome text(A label which is used to specify the current user) Thank …

Member Avatar for mail2saion
0
113
Member Avatar for love_dude1984

hi, i want to store a arraylist in a session variable & retrieve it on the other page. how it can be done.. for example, [code] ArrayList ar = new ArrayList(); ar.Add("a"); ar.Add("b"); Session["id"] = ar; [/code] now how can i retrieve the arraylist on the other page? i tried …

Member Avatar for sanjaycedti
-1
89
Member Avatar for Andrew Docherty

Hi, I am new to jsp, and Beans. I have been working on this piece of code, for the past week and I am no further along :'( I am using Tomcat Apache 6.0 In the ROOT folder I have a simple page test1.jsp: [code=JSP]package user; <%@ page contentType="text/html; charset=utf-8" …

Member Avatar for peter_budo
0
116
Member Avatar for feoperro

Hi, I would like to know if it's possible to specify the "target='FrameName'" in response.sendRedirect("Home.jsp") by any chance? I tried this: [CODE] <!-- Security Check --> <form action="Login" target="_top"> <% if ((String) request.getSession(false).getAttribute("sessionStatus") == null) { response.sendRedirect("Login?pageTimeout=yes"); } %> </form> <!-- Security Check --> [/CODE] But it doesn't work... The …

Member Avatar for feoperro
0
997
Member Avatar for Stretcher75

I'm having an issue trying to update a field in my database that is a INT type. I'm using this field for a checkbox on my form. The checkbox works correctly by using the field in the database containing a 0 for unchecked and a 1 for checked. The problem …

Member Avatar for zid8ne
0
117
Member Avatar for masocha

Ok l am coding a simple PHP & Mysq session based athentication. l have done numerous of these before with success. Sadly this one cant run,. Someone pliz send me the correct code.

Member Avatar for network18
-4
66
Member Avatar for rosykyawthein

Hi I'm from Asia and I have only a little knowledge in computers and its language but i'd like to study and know little by little where do i find the tutoring session

0
14
Member Avatar for itsrahulk

hi all, i am not able to print the message which i taken in session variable $_SESSION['msg'] ="* Property details saved successfully" i am posting all the values on the same page and redirected the header to get all the updated values back. but when i use unset($_SESSION['msg']) after echoing …

Member Avatar for itsrahulk
0
174
Member Avatar for hajjo

Hello all I am using the request scope. I have parent window, which opens a child window on button click. Am using window.open That child window opened is request scope. Problem is, on that child window there is a button.. say I write "greg" in the textbox and click the …

Member Avatar for peter_budo
0
88
Member Avatar for itsrahulk

hi all, i am creating a session variable on the property_detail.php page where after updating all the values i redirected the use to the same page with the value in the session to be printed on the same page as "Property details saved successfully". but the problem is when i …

Member Avatar for itsrahulk
0
106
Member Avatar for t_simpson

I'm a student but I'm not asking anyone to do my work for me, however I would like a little help if possible please. For part of my assignment I have to create a program that will issue a bepp of the value ( frequency and duration ) that the …

Member Avatar for t_simpson
0
75
Member Avatar for dinilkarun

Hi Friends, I need to write a piece of code to identify if an Excel session(the process which is listed in the Task Manager) is already running or not?. Can anyone guide me with this? Any help will be much appreciated! Regards, Dinil

Member Avatar for dinilkarun
0
145
Member Avatar for sanch01r

Hey guys, I am writing an Active Directory Tool that allows my team to read data without having to access Active Directory through a remote desktop session. I am not too familiar with the TreeView control and I was wondering if there was a way to add the Active Directory …

Member Avatar for DdoubleD
0
1K
Member Avatar for PinoyDev

good day.! I am having problem with my Hitachi HDD..Every time i format it, the format session will not complete because of bad sectors on it.Is there any other way to bypass/repair this bad sectors via a bootable dos base software or in any other way.? Thank you for giving …

Member Avatar for PinoyDev
0
119
Member Avatar for rickya100

Hey everyone, The problem I'm having is regarding trying to persist a users search selection. For example a user searches (for holidays) on the homepage. I would like the search box which is displayed on every page to hold the values of the previous search which are persisted in a …

0
147
Member Avatar for diya0076

hello i am developing e-shopping website after adding items in cart.aspx...n by clicking on "FINALE PURCHASE" button control goes to the card.aspx --->click method of cart.aspx [CODE] protected void final_Click(object sender, EventArgs e) { Session["total"] = lbltot.Text.ToString();Response.Redirect("card.aspx"); } [/CODE] by clicking on submit in card.aspx [ICODE] protected void object sender, …

0
57
Member Avatar for teteret

hi...i have a project to do which simulates a calculator, quiz and chat session....i finish writing my code but i have no idea how to write the pseudocode since classes and functions are involved....can someone pls give me an example of a pseudocode that has both functions and classes cuz …

Member Avatar for chipepalf
0
144
Member Avatar for Kristofferson

Alright, so my issue is that I have a staff profile. When you press the button it brings you to the Edit Profile page with text boxes with the original information in them so they can be edited. Now I ask for the edited information to be updated when the …

Member Avatar for TomW
1
190
Member Avatar for san_crazy

I have following grid view control [CODE] <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" style="z-index: 1; left: 59px; top: 1px; position: absolute; height: 158px; width: 658px" BorderColor="#0066FF" BorderStyle="Solid" PageSize="20" onselectedindexchanged="GridView1_SelectedIndexChanged" DataKeyNames="application_id"> <PagerSettings NextPageText="Next" PageButtonCount="20" /> <Columns> <asp:HyperLinkField NavigateUrl="view_forms.aspx" DataNavigateUrlFormatString="" DataTextField="application_id" HeaderText="Application ID"> <HeaderStyle Font-Names="Verdana" Font-Size="Small" HorizontalAlign="Center" /> <ItemStyle Font-Names="Verdana" Font-Size="Small" HorizontalAlign="Center" /> </asp:HyperLinkField> …

0
80
Member Avatar for arunajasmine

i am trying to use the File upload feature in my application .. i am having a Form with many fields of type Text,textarea and including File upload FIeld. I have kept a Submit button at the end of the Form which on click will submit the actual value of …

0
106
Member Avatar for fawkman

Hi guys I am very new to php and am trying to create a small content management site. Hopefully I will have posted this correctly, sorry If I have missed anything out. I want to be able to have an admin page link show up when i log in as …

Member Avatar for glycerine
0
113
Member Avatar for just_me

hi guys! I got a problem when I want to display the array from the database and rank it. can someone fixed this problem:- [CODE] <?php session_start(); include "mysql.php"; // you have already opened your db connection $report_status = isset($_REQUEST['reportTotal']) ? $_REQUEST['reportTotal'] :""; //$query = mysql_query("SELECT * FROM `supplier_report` " …

Member Avatar for just_me
0
95
Member Avatar for rapture

I'm fairly new to asp.net and trying to use a session counter to check for when someone has tried to log in three times it counts and when reaches three it locks them out. I know it's easy but my brain is fried. [code] Protected Sub btnLogin_Click(ByVal sender As Object, …

0
94
Member Avatar for rapture

Another problem in my program is that I can't get my access database to update. It works on the other fields here is the code [code] Public Sub Lockuser(ByVal path As String, ByVal userId As String, ByVal access As Boolean) Dim sqlConn As OleDbConnection Dim oCommand As OleDbCommand Dim stmt …

0
107
Member Avatar for aero100

Hello, I'm trying to make a checkbox list which when items are selected are put into session state. I want the items selected to be put into session state so I can display them on the postback url page. As for the items in the checkbox list (data) I want …

0
46
Member Avatar for genieuk

Hi, My site uses sessions and for example on login a random token as a hidden field in the form is generated and added to the session. As i am on shared hosting i set my own session path outside root directory and if for example session is tampered in …

Member Avatar for genieuk
0
132
Member Avatar for priyapratheep

Hi friends, I am new bie to programming.This is my first project.so the tecnical terms i am not familier. I am doing one small project with Eclipse Europa,jsp , EJB. with XDoclet, weblogic server I first created all my jsp files as one project.Then i created one enterprise application project …

Member Avatar for peter_budo
0
175
Member Avatar for SFletch

I've written a small web db app, designed to sit within another page (in an iframe). It is designed to be called with a parameter (or two). iframe html calls Default.aspx?Parameter=4 The default page does nothing except check for the existance of the parameter and store it a session state …

Member Avatar for kvprajapati
0
134
Member Avatar for fawkman

Hi guys I am very new to php and am trying to create a small content management site. Hopefully I will have posted this correctly, sorry If I have missed anything out. I have a self referencing form, which allows me to enter a file name and browse to a …

Member Avatar for jgeboski
0
119
Member Avatar for sanjaypandit

[QUOTE]hi friends i have facing a problem [CODE=php]<? define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'lang/'); define('DEFAULT_LANGUAGE',''english); ?>[/CODE] these are code use in configure.php it is use in index.php with following code[CODE=php]<? include_once(DIR_WS_LANGUAGES.DEFAULT_LANGUAGE.'.php') ;?>[/CODE] now i want to use this with select language i select language [CODE=php] <? if(isset($_GET['flag'])){ if ($_GET['flag']==po){ echo …

Member Avatar for pritaeas
0
98
Member Avatar for onsir

Hi, all How to create report use IReport and Hibernate I have tried, like this : : 1. create file hibernate.cfg.xml [code] xml version='1.0' encoding='UTF-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="connection.url">jdbc:mysql://localhost/a6</property> <property name="connection.username">root</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="connection.password"></property> <property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property> <!-- thread is …

Member Avatar for seela
0
901
Member Avatar for neeraj20gupta

when i try to run the following code....----> [code=JSP]<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <jsp:useBean id="accountBean" class="banking.pac.AccountForm" scope="session" /> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> <script language="javascript"> </script> </head> <body> <form …

Member Avatar for Kamalapriya
0
245
Member Avatar for j_limboo

New to php I want to create new table and store session ID this step is to prevent multiple login Current using this code which does not check multiple logins Any advice would be appreciated [CODE] <?php //Start session session_start(); //Include database connection details require_once('config.php'); //Array to store validation errors …

Member Avatar for diafol
0
2K
Member Avatar for indhu arun

For the last two days I was banging my head to move the control to a specific record in a formview(that is used to update a specific record based on the primary key selected in a dropdown). I use asp.net 3.5 and Linq.. so using Linqdatasource I couldn't find a …

0
55
Member Avatar for mldardy

I have a shopping cart page where if an item is Real Estate Forms 2d then there will be a sales tax assessed. If it equals any other item there will be no sales tax assessed. The problem I am having is I can't get a sales tax assessed for …

Member Avatar for mldardy
-1
126
Member Avatar for CyberWizard

Hi A friend has given me a Toshiba Satellite Pro L300-155 laptop to take a look at. It wont boot up! It goes as far as a screen saying your last session was shut down blah blah blah do you want to start in safemode safemode with networking safemode with …

0
43

The End.