4,124 Topics
![]() | |
Hi, I have basically created two functions in a filed called functions.php . They are as follows: [CODE] # Form Token Hash Generator (must be declared after if statement) function GenerateFormTokenHash(){ $token = $_SESSION['token'] = md5(uniqid(mt_rand(), true)) ; return $token; } # Form Token Hash Validator function IsValidFormTokenHash(){ return $_POST['token'] … | |
now i know that there is a thing that "you cant stay logged inforever" but isnt there some sort of ultra cookie that doesnt get cleared when a user is clearing their cookies from their browsers? and when someone logs out of my site, i set the session to expired. … | |
Hi , can anybody tell me any valid link to download Ldap libraries for c# I am trying many links but It takes much time to respond and error occured as session timed out. | |
Hi can anyone solve a very annoying problem for me I have brought my first laptop and when I using it at random the computer opens a blank internet page (nothing but white) it happens even when I'm not using the internet the only way to get rid of it … | |
On this project. I used XML as a database and AJAX for display.. I integrated this website [B]Here's the full source code.. please scan it for your safety.[/B] [url]http://www.mediafire.com/?nh14oi1mmeo[/url] First, radiobuttons is assigned before page init.. [code] public partial class Default : System.Web.UI.Page { //Assign values as a specific Dynamic … | |
I want to be able to access whatever the user types into my testCreation.html in a session created in testCheck.php. I then want that session to be accessed by testView.php. I can't seem to get to that point so any help is grealy appreciated. testCreation.html: [code=javascript] <html xmlns="http://www.w3.org/1999/xhtml" > <head … | |
Hi Frnds, I created session for index page. I passed session variable to next page like "about us" page. But in index page it displayed some errors. Notice: Undefined index: myusername in C:\wamp\www\fc2\index.php on line 136 Notice: Undefined index: mypassword in C:\wamp\www\fc2\index.php on line 137 Line 136 : $myusername=$_POST['myusername']; Line … ![]() | |
I have a web app that creates an employee.txt file, how do I go about printing the contents of the file from a form? [CODE]<%-- confirmation.jsp --%> <%@ page session="false" import="java.util.*" %> <%@page import="java.io.InputStreamReader"%> <%@page import="java.io.BufferedReader"%> <%@page import="java.io.DataInputStream"%> <%@page import="java.io.FileInputStream"%> <%--Retrieve the Employee and Hiring beans from the Request scope--%> … | |
Hi All, Good Morning. I'm new to php environment. When you are in internet explorer and you register, if you choose a different address to send the commission checks to, it always says "Choose a state" even though you chose one already. Here is the code. <?php session_start(); include_once( "common.php" … | |
Hi I need to know how to keep data in a gridview after postback. I am using sqlDataAdapter with DataSet to fill the gridview. But if you want to go to the second page of the gridview list it loses the data. Would it be best to create a Session … | |
hello all i have one master page containing menu strip and one content page of same master page what i want while i click on the menu strip the value clicked is shown to to text box on form for that i am using following code master page's code [CODE] … | |
hi, How to maintain the session in curl in php. Thanks | |
Hi, can anyone give me a bit of advise? Ok this code works and sends a result if it is higher than 99% to an email address. What I now need to do is limit the number of times a person can access the quiz if they don't score 99% … | |
So far today has been one of those days where I can't get anything to work. For the past three hours, I have been trying to require tmail library, and trying to connect to my mail server with imap. Here is a brief session illustrating my frustration. [CODE]irb(main):001:0> require 'net/smtp' … | |
Im receiving the above msg even after using MultipleActiveResultSets=True to connection string public partial class registration : System.Web.UI.UserControl { string gender; SqlCommand cmd = null; SqlConnection con = null; protected void Page_Load(object sender, EventArgs e) { con = new SqlConnection("Server=.; database=nkm; user id=sa; pwd=karthavya"); con.Open(); cmd = new SqlCommand(); cmd.Connection … | |
Really Im getting very much confustion. I searched in net to get solution for the following msg. There is already an open DataReader associated with this Command which must be closed first. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace … | |
Hi all, From within python script, I created a ssh handler to a remote machine whose interface is down and then using the ssh handler, I executed on the remote machine the following command: service network restart But the remote ssh session breaks and the service network restart is not … | |
I want to craete session object in my application .please tell me how to create and use session object. | |
Hi, I am using the following code to send email using JSP through gmail. But i am getting error in the following line: Session mailSession = Session.getDefaultInstance(props, null); [code] String host="", user="", pass=""; host = smtp_server; //"smtp.gmail.com"; user = jsp_email; //"YourEmailId@gmail.com" // email id to send the emails pass = … | |
hello all, i want to ask how to i set variable in asp:sqldatasource in sqlcommand in asp.net c#.... This is my code asp.net [code] <dx:ASPxListBox ID="lsAssignToko" runat="server" DataSourceID="SqlDataSource6" TextField="NAMA" ValueField="ID" AutoPostBack="true" EnableCallbackMode="True" SelectionMode="CheckColumn" onselectedIndexChanged="lsAssignToko_SelectedIndexChanged"> <Columns> <dx:ListBoxColumn FieldName="ID"/> <dx:ListBoxColumn FieldName="NAMA" /> </Columns> </dx:ASPxListBox> <asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:Ora2010 %>" ProviderName="<%$ ConnectionStrings:Ora2010.ProviderName … | |
Hi, i want to ask for the question in the subject this post. Well -- what way is for you the best and why? I think right now, if is better the shopping cart make with support SESSION or after add the item to the cart this item save into … | |
Hi, I've just paid £10 for a book on the internet with the sole intention of solving one problem, unfortunately 2.5 hours later I am no further forward, despite the fact that the book suggests just a single line of code can achieve my aim. Maybe someone here can help. … | |
Hi, I am creating a web application that will be accessed by several different users who need to be coupled and to interact. More specifically, I would like to let both of them call the same servlet instance and make the servlet start his operations only when both users already … | |
i'm making a web application based on jsp i wan't a code that when a button clicked, take value from textbox and insert its value into mysql database pool maybe the sql stmt only isn't right my code is: [CODE]<form id="form1" name="form1" method="post" action="http://localhost:8080/servlet/mailservlet"> <p> </p> <table width="100%" border="0" cellspacing="0" cellpadding="0"> … | |
I want to retrieve session value(username) from the login page. I have to verify the user by their username to make the access right control for certain page. In my application, i want to control the access right to "ViewAllProject.aspx" page. I have save the username in session in login … | |
I am trying to use the session start function but everytime I try to use it, it gives 2 errors: [QUOTE] Cannot send session cookie - headers already sent by (output started at /var/www/form/send.php:11) in /var/www/form/send.php on line 12[/QUOTE] [QUOTE]Cannot send session cache limiter - headers already sent (output started … | |
My membership script works fine, except I can't login, because this check.php script doesn't work. Login form action is check.php. Once I login with username and password, check.php gives me an error message "Please enter ALL of the information". The only information on login form is username and password. The … ![]() | |
I have been fighting with this code for 3 days. I got everything to work....except its a bit glitchy as of right now and I can't figure out why. I am sure it is simple. They basic concept is something like this: OFFICE [txtbox] [txtbox] [txtbox] [label] +add row BUSINESS … | |
Could somebody please direct me? Why the code is not working? Let's say I have two scripts: mypage.php and mypage2.php. mypage.php: [CODE]<?php // this starts the session session_start(); // this sets variables in the session $_SESSION['color']='red'; $_SESSION['size']='small'; $_SESSION['shape']='round'; print "Done"; ?>[/CODE] Works as expected, outputs "Done". mypage2.php: [CODE]<?php // this … | |
Hi, I need help with JSP session. My problem: I have a login page. When a user logs in then, i set a session and its expiration time. So, when the session is expired, the user will be redirected to the login page with a session expired message. I want … | |
hi! I have prbleme is that how can apache recieve email and how I can add session it mean that the person can not add or delete or do any evenement before he login . [CODE] <?PHP session_start(); include("connexion.php"); if (isset($_POST['login'])and isset($_POST['password'])) { extract($_POST); if (empty($login) or empty($password)) { echo … | |
Hi all, I am a java programmer and this is the first time I movw to asp .net. However, there is some points i couldnt find out and hopefully i can have some help from you guys. I have form with is very long so i need to devided it … | |
Hello everyone, I'm having a little trouble here. I'm trying to use a session created from log in(the user id) and take that user id and pull out information from the data base. An example would be: (this is not the actual code, but I will wrap it anyway) [CODE] … ![]() | |
How could I like programming ? When you spend 2 days on one single, pointless line and the only thing you get to see is an ERROR-response. It`s really inhuman and I cant imagine who would want this voluntarily. Nevertheless, what am I yammering about is following error, that is … | |
Hi everyone, I am doing a project for school and i'm having some problems. I have a Profile page. When i call on Profile.java, this servlets get(doGet) the profile info from the database and shows it on the profile.jsp. The user has the option to edit the info on the … | |
I am working on a project that I want to "+Add Row" to. This will Add a row of four fields that are textboxes. The # of rows is variable so I created a literal control and have been doing [code] Protected Sub btnAddRow_Click(ByVal sender As Object, ByVal e As … | |
I have a multiple web sits asp.net application. In this application different domains using the same pages. All pages inherit from base class named: PageBase wich inherit from System.Web.UI.Page. By using: HttpContext.Current.Request.ServerVariables["HTTP_HOST"] i cen determine what is the domain and then get all the info i need for this domain … | |
Hi there, Small Business Server 2003 Service Pack 2. From the server and within 'Server Management > Client Computers' when I click on a computer name and choose 'Offer Remote Assistance' I get the following error: [I][B]Help and Support Error Windows cannot open Help and Support because a system service … | |
[QUOTE]Hi; I have developed a MCQ based learning game. A user has to play the game repeatedly to improve his learning. For each session of game, player gets score. I want to write the score in a single file for every session. e.g. I want to print user name and … | |
The code below is my insert statement to get values into my database. However, I now have an update page where users can update their information. I thus have a form in which their initial info is inserted and now they can change it and submit again thereby updating the … | |
I am converting a xls to web form. THere are 4 fields and XX # of lines per form entry. Since the number of lines are variable I want to have an "+Add Line" Button to add a line of txt boxes to the form. I have gotten it to … | |
Hi, I having problem to fix this problem. Already search for related thread, but cannot find a solution. The case is like this. I have 2 system that intergrate each other. Let assume as system A and B. User need to login from system A and can use system B … | |
I m making a website in which I hav an admin and members .. I want to define rights of users who can access a certain page.. For this purpose I m using an array of String along with a Session object. I m storing URLs of pages which a … | |
To get to the brunt of it, I have a link list on the left sidebar of my site, each link is just a recordset table value and I used a repeating region to repeat down. Therefore the list of links is essentially a list of recordset table values from … | |
Hello everyone, I used session and the id of the selected checkbox are passed to another page currently. now I do another query based on the ID of the selected checkbox. I want to display the fields from the selected result in columns like this [url]http://www.bluenile.co.uk/diamond_co...OMPARISON_STEP[/url] I did this [CODE] … | |
This problem is on AWS linux instance,in local its working perfact. Here is my flow: this file is:test.php [CODE] require_once('system/config.php'); $_SESSION['name']='test'; echo 'session -name- is:'.$_SESSION['name']; exit; [/CODE] Expected Output: session -name- is:test (its coming.OK) here i have set session value to test. so in page session is now live and … | |
i have deploy my .Net web application. i can retrieve the first page that is the login.aspx page. but, when i click the login button, the error has occur. Execute Reader: Connection property has not been initialized. After user click login button from the login page, menu page should be … | |
Hello everyone, I'm in the process of learning php in a class and had a quick question for one of my assignments. I am uploading a file to a server which the user can name the directory. However, after they upload the file, I have to give them the option … | |
I spent the better part of this week at the[URL="http://www.e2conf.com/"] Enterprise 2.0 Conference[/URL] in Boston where I saw an excellent presentation called "The Dark Side of Enterprise 2.0." During this session, Kathleen Culver of Alactel-Lucent suggested that one of the big negatives of Enterprise 2.0 and by extension, social media … | |
fellow developers...i am new to web development...I am developing a simple web application using Oracle for Weblogic Workshop with Weblogic 10Gr3 server. However my deployment server is weblogic 7.1. When i deploy and run the app, i get the following error Parsing of JSP File '/index.jsp' failed /index.jsp(6): class 'xxx.xxx.xxxx' … |
The End.