3,454 Topics
Hello, I am looking for a few things... 1. How to put an upload field into a web page to that I can upload files to a directory on server. 2. I want to be able to choose different directories to upload it to (clients) 3. I would like to …
Hai, In one of my project I found a serious bug with session. In IE and Firefox It works fine but in Opera and Safari ... it doesn't working. I will give the testing code which I wrote Page 1 ( index.php ) [ICODE]session_start(); $_SESSION['uname']="I_am_Rajeesh"; header('Location: two.php');[/ICODE] Page 2 (two.php …
fedora8 login user then following error User's $HOME/.dmrc file is being ignored. this prevents the default session and language from being saved. File should be owned by user and have 644 permissions. User's $HOME directory must be owned by user and not writeable by other users.
l am wanting to build a php session script but l understand that there is more to it than just what w3schools shows, anyone got a good tutorial on it or time on msn ???
Hi PPL, I have a table in my web page which will be displayed when I select an option from a dropdown box. The table appears as follows: [CODE] Username Assignment Date Update me work 2010-01-21 (submit button) you hello 2010-01-20 (submit button) [/CODE] Now when i click the submit …
Hey guys at DaniWeb! I have spent a lot of time debugging this PHP/AJAX page, and it finally (sort of) works. Index.php can read and write to processLogin.php so I have a page that can log you in without refreshing the page. However, I cant figure out how to set …
Hai I made a login system in php and every thing working fine in IE and mozilla. But in Safari and in Opera when I click sign out then it works fine and after that if I press back button in browser then it comes to the previous page (myaccount …
some of my session values are missing. Can anybody please tell what all reasons can be there?? on submitting the form its assigning to variable and its alerting using jquery. But after going any page session values are missing. Do any body had these type of issues. Am sure, many …
The goal of this project is to use if-else statements, anydbm, and turtle graphics in a Python program to make a database of colors. If the program is called colordb.py, then a session at the command prompt $ happens as follows: $ python colordb.py hit enter to give a color …
Ok, I am stuck. I have the following code to log in. I don't think it is 100% secure, but I am having an issue writing a script that will email a link for a user to reset their password. Any help would be appreciated... [code] <?php session_start(); if(isset($_GET['reg'])) { …
As a novice JSP (and non-programmer!) I've bee doing some customisation to a browsers driven application which provides a users with CTI functionality on their desktop. My task was to create a custom "tab" on their page, which gave a series of checkboxes, with an "Apply" button. The purpose of …
While trying to address a new requirement we wanted to provide a generic soln and pass on our pain to the customer. :) [B]Application: [/B]Say I have some application listening to a port or JMS or something where it receives some encrypted messages/requests. To process the requests it need to …
Hi all, I've hosted my application at shared server. So, after 10 - 15 minutes my session object "userid" is expiring and throwing error "Session object userid is not instantiated" I want to check my session object exists or not. I've already used if(Session["useid"]=="") but it is throwing error. Is …
Hi all, My code lists items based on the logged in users id. when listed these items have an edit function. When the use clicks edit, the url holds the id for that item. My problem is that its possible to change the url to show details of something thats …
Hi All, How you can help me with something. when a user logs in and is successful, i want the value of the user "type" to be stored in a session, which is then passed to the "login successful" page where i intend to use a switch statement to determine …
i have a page [QUOTE]edit.php[/QUOTE] and i wanted to be like this edit.php?at=profile edit.php?at=upgrade edit.php?at=im edit.php?at=delete and if there is no at='something' to include default theme(html) [CODE]<?php include "../app.php"; include $basepath . "inc/PasswordHash.php"; include $basepath . "inc/functions.php"; include $basepath . "inc/adodb5/adodb.inc.php"; // Session Start $adodbsessionstart = new UADODB; $adodbsessionstart->adodbSessionStart(); $db …
Hi I have designed a simple login area on a website that creates a few session variables to use to query a database of products which works fine: [CODE]<?php session_start(); // dBase file include "dbConfig.php"; if (!$_POST['username'] || !$_POST['password']) { die("You need to provide a username and password.<p>Click <a href='main_login.html'>here</a> …
Hi all, The following script works fine by allowing me to set a session variable with the users password, but i can seem to extract other information that isnt included in the $_POST. I know usually i would use something like [code] while ($row = mysql_fetch_array($sql)) { $user_type = $row['user_type']; …
Hi guys. i am having problem regarding of passing session data from one page to another. In start.php i have this session initialization & assignment. [code=php] session_start(); $_SESSION['course']=$_POST['course']; [/code] where the method of the form that this course menu has is set to POST and the action is set to …
Hi, This is what I am thinking to do. Do you think this approach is useful? Thanks index.php 1.Get user's ip 2.Get session id 3.Combine them together and do SHA1 it 4.Store result in a $_SESSION["secret"] login.php 1.Get user's ip 2.Get session id 3.Combine them together and do SHA1 it …
Hi! I'm making a graph generator. Most is done but the only problem is that when i'm doing the 2nd or 3rd graph in the same session, the graph collapses . and after the end of execution of the program, i get "Null pointer assignment" I tried debugging but i …
Hi im just wondering how i could improve this to make it secure from either the jsp file itself or external java files. [CODE] <html> <head><title>JSP Page</title></head> <body> <jsp:useBean id="user" scope="session" class="shop.UserBean" /> <jsp:useBean id="dataFactory" scope="session" class="data.factory" /> <% String userName = request.getParameter("userName"); String userPassword = request.getParameter("userPassword"); user.setLogin(dataFactory.getUser(userName,userPassword)); user.setUser(userName); if …
I want information about user's logon session. Please tell me how i can get it in web Application.
Below is a script which i use to return a random image in a specified directory. (It also sets a session variable to cache a list of images recently displayed, but that is irrelevant to my problem.) I am looking to have this script also find files in the sub-directories …
Hi Lads im writhing a login system for a personal project. the login part work nice but there are some includement stuff i cannot get figured out. when a user logs in the session will start and he will be redirected to his CP. now. the link to the cp …
Hi, I'm trying to create a multilingual site and I've decided to go with the example shown [URL="http://www.phpsimplicity.com/tips.php?id=15"]here[/URL]. The problem is that I'm also trying to build the site with a method I've never used before. The navigation is done through the get-method. All content gets loaded into the index …
I'm getting the following warning; Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\ep\login.php:1) in C:\xampp\htdocs\ep\login.php on line 2 If i comment session_start(), everthing works fine. Where is the actual problem? Here is my code; [CODE=php] <? session_start(); include "config.php"; global $c; require('functions.php'); …
Hello, I'm fairly new to php. I have a two page's, one where user creates account. The other one is for the user to insert other information. [B]If [/B]user completes both pages I want to direct them to their personal page, [B]else[/B], direct them to the second page to insert …
Hi All, I use at work Rflection X to access Server Running on Solaris 10. There are applications running there so what we do is just connect to that using IP address. Then comes login windows and starts GUI I can login to commandline via putty but cannot start the …
Hiya, Ive been using sessions for my website login but dont actually seem to be able to get my head round the data and content of it! For example ... if im using a session that holds the username of the member which is used to indetify and check access …
Hello All, when I add/Delete data to my database (MySQL) using php, i discover that when i refresh the page my Add/delete script runs again and add (or attempt to delete) another copy of the record i added/deleted initially. How can I prevent a block of php script from running …
Hi, i use simple login with a login page where user place u/n and p/w. The data are compared to store data from access db. If matches, open a secure page. So far so goob. In secure page i wanr to show a gridview with user's data, so he can …
hi... i just wanted to know how we can access the variable of 1 form to another form.as far as i know, ther is no session management concept in C#. for ex., i want to access my login id into the next form. then what will be the procedure to …
i want to generate automatic emails. i got the following code by google. i also added the mail.jar file into lib of web inf. wen i execute this code i get exceptions "Could not connect to SMTP host: smtp.gmail.com, port: 25 (javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?)" and "Unrecognized SSL …
Hi all, I have two jsp pages say jsp1 and jsp2. In jsp1 I have the following line: [code=jsp] <%@ page contentType="text/html;charset=UTF-8" language="Java" import="java.sql.*" %> <jsp:useBean id="one" scope="session" class="mypackage.myclass1" /> [/code] In jsp2 I have the following line: [code=jsp] <%@ page contentType="text/html;charset=UTF-8" language="Java" import="java.sql.*" %> <jsp:useBean id="two" scope="session" class="mypackage.myclass2" /> …
[code] //declare variables $thing = $_SESSION['username']; // get username from session $name = mysql_real_escape_string($_REQUEST['name']); $pwrd = mysql_real_escape_string($_RQUEST['pass']); //$mpwrd= md5($pwrd); $error = 0; $select = mysql_query("SELECT * FROM users WHERE username='$username'"); $numrows = mysql_num_rows($select); $check = mysql_query("SELECT * FROM users WHERE username='$name'"); $check2= mysql_num_rows($check); //if submitted if (isset($_POST['submit'])){ if(!$name){ $error ++; …
[code] public CheckBox[] cb = null; int z=0; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int count = (int)countcmd.ExecuteScalar(); Int32 k = Convert.ToInt32(Session["TZ"]); cb = new CheckBox[count - k]; OleDbCommand cmd = new OleDbCommand("Select Member_Name from Member_Master", con); dr = cmd.ExecuteReader(); while (dr.Read()) { //creating check box …
Hi Friends, I am an java programmer and trying the code change in C++ now,Kindly guide me for the below issue I am facing, The code which I need to modify is Original code:- [code] /* **-------------------------------------------------------------------------------------------- ** Description : This class starts the event listener threads for BRANCH ** …
Hi, I have an application that is making request to server, in this case how can the server maintain the session. If I run the same URL from browser, all the session and page navigation are working. My application is some thing like an exe file, not on the browser. …
hi there, I have to display some user specific info;so i need to save my login page credentials to show only that user's info.So plz help me as how to store login page info in session variable and how to access that info in some other page in ASP.NET. thnx
I downloaded Malwarebytes Anti-Malware. I ran a scan and this is what I got back. Can someone help please? :) Malwarebytes' Anti-Malware 1.44 Database version: 3569 Windows 5.1.2600 Service Pack 3 Internet Explorer 8.0.6001.18702 1/15/2010 1:01:57 PM mbam-log-2010-01-15 (13-01-57).txt Scan type: Full Scan (C:\|) Objects scanned: 237765 Time elapsed: 58 …
hi...My friend of mine told to use this code [CODE]if($session->isAdmin()) the check if the user is logged in & has admin privileges if($session->logged_in) to check if the user is logged in (simple user) [/CODE] in login system.but it doesnt work at all..i want that if i login into the system,my …
Hi, I have uploaded all my php pages to the server and everything runs perfectly fine. There is just one problem. When i click the refresh button on any page, the user is automatically logged out (session destroyed) and is directed to the login page. When i was refreshing the …
Hey guys i'm pack for more help again! For a site I'm making I need a shopping cart. It's all working but for some added functionality I would like to be able to update quantity of an item using an input box. For an example see this site: [url]http://www.oonaghnaturals.com/ShoppingCart.php?[/url] I'm …
How do you save a session value in JavaScript? Please help! Sally
added checkbox on gridview this method: [CODE]<asp:TemplateField> < ItemTemplate> < asp:CheckBox runat="server" ID="CheckBox1" /> </ ItemTemplate> [/CODE] I want to save selected values another table but I did not achive.First I try this code and then I will convert this delete statement to select statement ,it deletes checked value but …
hello all,,,, i want suggestion is it be possible to create a samll shopping cart system with only php session no database no txt file for storing values....? thnx in adve.
Hi I am currently working on a web site which I had to modify to add the option of either using pounds or euros forthe pricing. I have two image input types which onclick I want to set the session variable $_SESSION['currency'] to GBP or EURO, and then refresh the …
Hi everybody, would you please tell me what's wrong with this code that generates the following error: Warning: fopen(C:\Documents and Settings\Sando\Desktop\boys.gif) [function.fopen]: failed to open stream: No such file or directory in /home/domain/public_html/webs/divisions/chek.php on line 108 [B]data inserted without any picture[/B] although it works fine and great @ localhost MySQL …
I have an ISP who gave me this basic config and it does not make sense to me. What I am looking for is someone to tell me I am not crazy. Overview: An MPLS network to connect multiple sites together and provide one site with internet. All other sites …
The End.