3,454 Topics

Member Avatar for
Member Avatar for 4789787

There is one file: Login.php and another, checkcookies.php, the login.php is meant to have a remember me button but I dont want that anymore, I just need a cookie to be added when they login for as long as possible, but its confusing me on how to do this. Here …

0
84
Member Avatar for akmal70

hi i am in great trouble. problem is i create a Servlet and code is HttpSession session = request.getSession(); session.setAttribute("employee", employee); "employee" is bean and now i am access that in jsp page like this: <LI><B>First Name:</B> ${employee.name.firstName} it work fine but if i use this bean in java code, …

0
60
Member Avatar for abhi10kumar

My session variable is not preserving same value through out pages, It is working fine in local but not in server.

Member Avatar for ko ko
0
38
Member Avatar for tstory28

Is there a way to have a session use two variables instead of just one? For instance: [CODE]$_SESSION['$email.$level'][/CODE]

Member Avatar for hielo
0
105
Member Avatar for paresh_thummar

[CODE] string sid = Session["id"].ToString(); string q1, q2; q1 = "select count (*) from All_msg where target_id = '" + sid + "'"; SqlCommand cmd1 = new SqlCommand(q1, cn); int v1; v1 = (int)cmd1.ExecuteScalar(); q2 = "select count (*) from All_msg where target_id = '" + sid + "'"; SqlCommand …

Member Avatar for kvprajapati
0
101
Member Avatar for abhi10kumar

I am using session variables, it is working on local but I run on server, it is not running. I am using Jquery

Member Avatar for cjohnweb
0
151
Member Avatar for denmarkstan

Please good people, i need your help. I having been trying to solve this problem, but no way. what is the best method to insert data so that this error of data truncation will be avoided in C#/asp.net. Here is what i have been trying to do: [CODE]public class BuildTable …

Member Avatar for Member #905211
0
235
Member Avatar for devsaini

hi, i have a table stu_record and a field name is image_student as a image type and image save in it in binary form. nor when i'm login i want to store this image into a session variable. and on other pages this session value store into another table as …

Member Avatar for vijay_myl
0
150
Member Avatar for abhi10kumar

I am using Jquery Popup-Form to send coupon code (which came from database) on email and through SMS. I am using to store couponcode in a session; but the page called by Jquery is not showing the value of session, I wrote session_start() at the top on both pages, still …

Member Avatar for aquilax
0
115
Member Avatar for MrBlack

[CODE] Session.Abandon(); Session.Clear(); Session["user"]=null [/CODE] i m trying to clear a Session but these methods are not working..how can i clear this Session plz help me.. thnxx

Member Avatar for prit005
0
90
Member Avatar for jacob21

Hi, I am working on login form.When i redirect a page its showing an error given below. Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\job\login.php:49) in C:\xampp\htdocs\job\login.php on line 50 need help. Thanks [CODE]<?php //Start session session_start(); $host="localhost"; // Host name $username="root"; // Mysql …

Member Avatar for riseguim
0
246
Member Avatar for deb0and

Not sure what this error means "NameError: global name 'sessionid' is not defined" Any help would be greatly appreciated. Below is the code [CODE]import sys from socket import * import re import os from time import sleep print ("[*] BY THE POWER OF GRAYSKULL - I HAVE THE ROOTZ0R!\r\n" "[*] …

Member Avatar for deb0and
0
886
Member Avatar for ibakir

Hey :D , take a look [url]http://www.dalilack.com/marketList.php[/url] click edit on the orange button EX : [url]http://www.dalilack.com/marketFormUpdate.php?Id=11[/url] the id of that user is 11, you can use 'hoho33' as a user name & 'shityshit' as a pass now you notice there's info for each member , and in order when that …

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for Dragonbaki

Hi guys.. Can anybody tell me about how to increment default session timeout(20 mins) in dot net..? It's urgent.. Hope anybody will help me.. Thanks in advance...

Member Avatar for Dragonbaki
-1
161
Member Avatar for ibakir

i would like to write a function if that user id who do a post equal the same user id who logged in then he can after a while edit again his own post , then if its match go to the update page to make the edit ; [url]http://www.dalilack.com/marketFormUpdate.php?Id=11[/url] …

0
186
Member Avatar for Miklo_jan

[B]Hi guys, Well I just reinstalled vBulletin 3.8.6, on top of the other. I tried to make a new THREAD, after posting it says:[/B] ___________________________________________________________________ Database error in vBulletin 3.8.6: Invalid SQL: UPDATE session SET newposts = newposts+1 WHERE NOT ISNULL(newposts); MySQL Error : Unknown column 'newposts' in 'where clause' …

Member Avatar for pritaeas
0
419
Member Avatar for ThomoTechnician

Hi. Been trying to make a (basic) social networking site for my school but have had problems with users being able to add themselves as friends. Seems stupid but it is annoying! I have tried using the code: [CODE]<?php if ($_SESSION['MM_Username'] == '****') { ?>[/CODE] But it wont load dynamic …

Member Avatar for ibakir
0
409
Member Avatar for abhisheyke

Hello dere.. I am trying to create a log-in and log-out page in JSP. HttpSession started when it get successful log in.While calling session.invalidate() for log out, session did not get destroyed,it retains all the attribute it had.. What should i do?? plz help me

Member Avatar for javaAddict
0
59
Member Avatar for naru vaishnaw

please correct this problem [CODE] id -- int user_id -- int friend_id -- int [/CODE] [CODE] <? session_start(); //starts session mysql_connect("localhost", "root", ""); mysql_select_db("admin"); if ($user_id= $_SESSION['logged']){ //check if user is logged in if($_GET['user_id']){ //gets userid $friend_id=$_GET['user_id']; //friend $by = $user_id; //me $query = "INSERT INTO friend_req ( 'friend_id , …

Member Avatar for Member #120589
0
167
Member Avatar for Danny159

Hey, I have some php code that I cant seem to get working... Here is the code... This is the javascript that changed the ?show in the url to what the user selects.. [CODE]<script type="text/javascript"> function show(){ var e = document.getElementById("select"); var strUser = e.options[e.selectedIndex].value; window.location = "?show="+strUser; } </script> …

Member Avatar for twiss
0
144
Member Avatar for khaley

I've searched Mozilla's site and the web for help on this problem, but without success: although Mozilla Firefox is normally set to open with only two homepages on my computer, in the last month or so it's been opening with 8 pages that happened to represent one web session I …

Member Avatar for jingda
0
186
Member Avatar for swilliamrobert

Hi, I want to destroy session when user close the browser tab or window in PHP. Please give me sample code. Thanks in advance. William

Member Avatar for divyakrishnan
0
226
Member Avatar for naveedqadri

I have a website in asp.net developed by some one else, i have made some improvements and now facing problem while uploaded [ [url]www.ict-m.com][/url] this site is running well on localhost. scenario : all files has path starts with /ictm/../../*.aspx 1: i created a folder on root directory with name …

0
168
Member Avatar for serdas

Hello all! I'm pretty much clueless as to how to write code. I saw the following script from [url]http://thinkdiff.net/facebook/users-demographic-data-from-facebook/[/url] so I decided to play around with it but I just can't get it to work. I created the table shown and also a file bd.php where it has the info …

Member Avatar for twiss
0
147
Member Avatar for mike1040

Turn off JavaScript, CSS, and cookies in your web browser and view your website. This is how the search engines most likely see your website. If you can successfully view your content and navigate your website your site is mostly search engine friendly. The only other thing to check is …

Member Avatar for fytmc411
0
87
Member Avatar for Lemorlenny

Hi all, this my first post. I'm newbie in C# and ASP.NET so be patient with me, I have a problem when declare object in the try clause working in VS2010 Express: ex. [CODE] protected void Names() { string strQuery; OleDbDataReader myReader; strQuery = "SELECT TOP 1 Name FROM Names"; …

Member Avatar for Lemorlenny
0
125
Member Avatar for gonidelux

Order Confirmation Thank you for your order! 84,46,62,84 Your Credit Card informations: Credit Card type: 0 Credit Card number: 2147483647 Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\baby\checkout.php on line 16 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\baby\checkout.php …

Member Avatar for IIM
0
546
Member Avatar for panhwer

Hello friends... I have one question that why session variable are stored on server side, what is reason behind this. If it is stored on client side what will be disadvantage.

Member Avatar for nonshatter
0
124
Member Avatar for IWDesigns

anyone got any experience with using the login with fb option?? im thinking of implimenting it into a site of mine but im not sure how it works, the fb documents are terrible and give no knowledge of anythin, and all the tuts are useless! i kno how it works, …

Member Avatar for matricol
0
108
Member Avatar for panhwer

Hello dear friends.. I have some confusion in following code. <?php session_start(); $_SESSION["name"]= "abc"; session_destroy(); echo $_SESSION["name"]; ?> as I am assigning value to session variable, after assigning I am destroying whole session but after destroying as I echo $_SESSION["name"] it show value. It is printing value even session has …

Member Avatar for panhwer
0
164
Member Avatar for dyingatmidnight

I'm finding that my session variable isn't following through from script to script. I'm creating a library database for school and I want the administrator to be able to open user accounts and view the details. This works fine. I then set the account number as a session variable for …

Member Avatar for dyingatmidnight
0
554
Member Avatar for Member #120589

Hello all. I'm producing a DIY multilingual site. I'm using a templating engine (rainTPL) and my own static language files (php arrays). In these files I not only have the page strings but also the meta tag and title contents. I'd just like to know if you think this is …

Member Avatar for Member #120589
0
200
Member Avatar for facarroll

I have two related scripts. The first script displays a pass or fail icon depending on whether the value of passState is 1 or 0. If a student failed a quiz the row also displays a link to check.php so that the student can view their quiz attempt in a …

Member Avatar for facarroll
0
143
Member Avatar for shyam2011

<?php // Inialize session session_start(); include('config.inc'); // Check, if username session is NOT set then this page will jump to login page if (!isset($_SESSION['username'])) { header('Location: index.php'); } ?> <html> <head> <title>Secured Page</title> </head> <body> <?php $result = mysql_query("SELECT user.password, data1.dob FROM user INNER JOIN data1 ON user.username = data1.username …

Member Avatar for vibhaJ
-1
1K
Member Avatar for VengefulWrath

Hi all! I'm wondering if you could look at my login code and tell me how secure it is. I know it seems to work pretty well, I'm just not very good at picking out security hazards. [B]Main login.php page:[/B] A simple form which submits to itself to check for …

Member Avatar for Member #120589
0
278
Member Avatar for naveedqadri

Hi every Body , I need your help , my friend left office leaving ASP.net website uncompleted. I am facing problem with this line: 1---:> This File: GenericError.aspx 'ASP.global_asax' does not contain a definition for 'exception' D:\ICTM_PRO\ict-edu\GenericError.aspx 24 [code] <% Response.Write("<br/><div style=\"color:#C6E2FF\">" + ASP.global_asax.exception.StackTrace + "</div><br/>"); %> [/code] 2---:> This …

Member Avatar for khadakbist
0
344
Member Avatar for didi00

Hi everyone! I've worked on a shopping cart and I have a small problem. When an order is made, it doesn't send a notification email. It all seems ok but I don't know why it doesn't work. Here is the code: [code]<?php header ('Content-type: text/html; charset=utf-8'); require_once 'utf.php'; require_once 'library/config.php'; …

Member Avatar for didi00
0
217
Member Avatar for klemme

Hi all, I am trying to create a small login system, but so far I suck at it. I have a form in one page. It contains only: EMAIL, PASSWORD. I want to do this: When the form has been submitted to the processing page, I am trying to check, …

Member Avatar for ko ko
0
200
Member Avatar for Member #825775

[CODE] <?php echo '<script type="text/javascript"> if(confirm("Your time has expired. Do you want to logout?")) alert("Five minutes were added on too your session"); //User will five minutes added on else alert("You are logged out"); //User will be loged out </script>'; ?> [/CODE] How do I put in PHP code inside the …

Member Avatar for Member #825775
0
2K
Member Avatar for dyingatmidnight

My code is not behaving as I would like and I think I've just been looking at it far to long to find the errors. Its for a library database for a school project (its sort of an independent study so I don't have an instructor to bring it to) …

Member Avatar for dyingatmidnight
0
127
Member Avatar for dyingatmidnight

Hello all, I've been using Chrome to develop a database website for a school project and I've been having a couple of issues. The first being refreshing. When I logout or login I have to refresh the page for it to pick it up. Or if sometimes I'm logged in …

Member Avatar for dyingatmidnight
0
118
Member Avatar for niths

hello everybody, I am having problem with logout of a Users Account in Firefox because whenever the user presses the Back browser button, the personal page was displayed, showing their personal details. Is there a way to logout successfully in firefox and chrome i;e when user click back button after …

Member Avatar for jfarrugia
0
81
Member Avatar for MavrickIT

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/dhenter/public_html/zshop/index.php:6) How could i solve this issue? check this link please: [url]http://d-h-enterprise.com/zshop/[/url]

Member Avatar for Member #120589
0
172
Member Avatar for berkshire123

Using VB.NET I am trying to display an arraylist in a gridview. I am having a few problems: -Doing the DataBind above is adding an extra column to my gridview which I do not want. How can I stop this from being visible? I only want to show the column …

0
75
Member Avatar for mindbend

So I'm busy with a small website I'm able to login at the website with the help of sessions that all goes well. But I'd like to expand the website a bit more, it's a sport website where people can add players, add teams, and add matches, and those are …

Member Avatar for mindbend
0
535
Member Avatar for PinoyDev

Good day! Ive been working with fancy box login and now Im almost at the point to accomplish it. I want to get the login username and password from the array that fancy box was created.. The main task is to pass the login username and password value from login …

Member Avatar for PinoyDev
0
157
Member Avatar for razgrizz25

Undefined variable: no in C:\xampp\htdocs\war\cPanel\pollingTampil.php on line 28 [CODE]<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Daftar Polling</title> </head> <body> <table width="702" border="0" cellspacing="1" cellpadding="2"> <tr> <td width="58">no</td> <td width="232">pertanyaan</td> <td width="122">op1</td> <td width="104">op2</td> <td width="96">op3</td> <td width="59">&nbsp;</td> </tr> <?php include "inc.session.php" ; include 'C:\xampp\htdocs\war\librari\inc.koneksi.php' ; $sqlTampil = "SELECT * FROM polling …

Member Avatar for ko ko
0
194
Member Avatar for RazorRamon

Im thinking about taking on a chat room php based project. I want to make sure my logic is right though. This is very raw so please feel free to contribute if you see any problems that might occur. [B][U]MYSQL[/U][/B] [U]TABLES[/U] Username chatroom1 chatroom2 etc.. [B][U]PHP[/U][/B] [U]Sign up.php[/U] Insert username …

Member Avatar for FreddieBambino
0
205
Member Avatar for Loved

I'm creating a form: Page 1 has multiple input fields, as well as dynamic form fields (using jquery load to add additional inputs as necessary). Page 2 reads these inputs and sets the values to a session variable (the only values I'm storing in the session are the dynamic inputs). …

Member Avatar for vibhaJ
0
107
Member Avatar for Member #153709

Hello people, If I want to access to my admin back-end, you will get a form to input your name and password. I have created a class that sets my session in a file called [CODE]StartSession.class.php [/CODE]here it is: [CODE] <?php class StartSession{ static $admin_s; static $password_s; function __consrtuct($admin_session,$password_session){ session_start(); …

Member Avatar for burgercho
0
200

The End.