Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
unset
- Page 1
UNSET Session And Destrpy Session Question
Programming
Web Development
2 Years Ago
by borobhaisab
… Sessions on the script ....
UNSET
($_SESSION['registration_form_display']);
UNSET
($_SESSION['registration_form_button_clicked']);
UNSET
($_SESSION['domain']); //Form Input
UNSET
($_SESSION['domain_email_account']); //Form Input
UNSET
($_SESSION['domain_email']); //Form Input…
unset $_SERVER['PHP_AUTH_USER']
Programming
Web Development
17 Years Ago
by ryan_vietnow
Hi guys, is there anyway to
unset
$_SERVER['PHP_AUTH_USER'] than to close the browser? I have tried [code=php]
unset
($_SERVER['PHP_AUTH_USER'] ); [/code] or even [code=php]
unset
($_SERVER); [/code] it
unset
but after you have refreshed it the $_SERVER['PHP_AUTH_USER'] comes back again. Hope to hear from you guys.Thanks
Re: unset $_SERVER['PHP_AUTH_USER']
Programming
Web Development
17 Years Ago
by johnsquibb
… it is meant to be but is there something to
unset
it for example I want to logout of the site… # 3 here)[/URL]. -- but seems to be no way to
unset
the variable itself is there a reason to not just…
Re: unset $_SERVER['PHP_AUTH_USER']
Programming
Web Development
17 Years Ago
by ryan_vietnow
Yeah,that it is meant to be but is there something to
unset
it for example I want to logout of the site so I would need that $_SERVER['PHP_AUTH_USER'] variable anymore?I mean can it work like sessions or cookies?
Re: unset / remove data from a multi-dimensional arrays...
Programming
Web Development
14 Years Ago
by hielo
…;& isset($_GET['id']) && isset($_SESSION[ $_GET['id'] ]) ) {
unset
($_SESSION[ $_GET['id'] ]); } [/CODE]
Re: unset / remove data from a multi-dimensional arrays...
Programming
Web Development
14 Years Ago
by newweb
Thanks for help hielo, I may still not
unset
the data from the Session arrays... Best regards new web
Re: unset / remove data from a multi-dimensional arrays...
Programming
Web Development
14 Years Ago
by hielo
[QUOTE]I may still not
unset
the data from the Session arrays...[/QUOTE] What does that mean? Have your resolved the problem? If not, on the page where you are setting/initializing the $_SESSION, you MUST call session_start() first (preferable at the very start or your file).
Re: unset / remove data from a multi-dimensional arrays...
Programming
Web Development
14 Years Ago
by wilch
… item foreach($_SESSION['varukorg'] as $cart) { if($cart['product'] == $productToDelete) {
unset
($_SESSION['varukorg']['product']); // delete the product break; // exit the loop…
Re: unset / remove data from a multi-dimensional arrays...
Programming
Web Development
14 Years Ago
by newweb
…['product']; foreach($_SESSION['varukorg'] as $cart) { if($cart['product'] == $productToDelete) {
unset
($_SESSION['varukorg']['product']); // delete the product break; // exit the loop } } }
Re: unset / remove data from a multi-dimensional arrays...
Programming
Web Development
14 Years Ago
by hielo
…;& isset($_GET['id']) && isset($_SESSION[ $_GET['id'] ]) ) {
unset
($_SESSION['varukorg'][ $_GET['id'] ]); } foreach($_SESSION['varukorg'] as $index=>…
Re: unset session variable through ajax PHP
Programming
Web Development
14 Years Ago
by codewall
you can create php page that includes
unset
session code then your ajax call this page
Problems with session_unregister and / or unset()
Programming
Web Development
21 Years Ago
by himerus
…a "switch" script that should
unset
the session vars that are registered for the…However, when I use the script to
unset
the variables to either return to admin only…// End session_unregister("company_id"); session_unregister("cname");
unset
($cname, $company_id, $_SESSION['company_id'], $_SESSION['cname']); header …
Recrusion, problem with unset
Programming
Web Development
17 Years Ago
by Spaiz
…pid ) { $return[$id]= $level; /* remove "
unset
" for correct results */
unset
($array[$id]); recrusion(&$array, &$return, $id… at the deepest child, removing the "
unset
()" will allow recrusion to complete. My … if you can, help :) I'm using
unset
to fastern future recrusions, as the actual array is…
Re: Recrusion, problem with unset
Programming
Web Development
17 Years Ago
by Spaiz
… of them is running the recrusion without
unset
, but the all much slower then with
unset
. I trying to do somesthing similar…
Re: is it advisable to unset() variables once they aren't needed?
Programming
Web Development
15 Years Ago
by cwarn23
…have the end variable is it advisable to
unset
() the ones I don't use any more? …of time left to execute then for sure use
unset
() to save resources. Also if your making … or hours or even days to execute then
unset
may need to be used all the time… something wrong with the bcmath library which requires
unset
(). So their your basic uses but as for…
Strange unset() problem
Programming
Web Development
15 Years Ago
by fenixZ
Hi, I have a class and i have
unset
() within a function in it which throws Parse error unexpected T_UNSET. Some code : [code] class foo { function abc() {
unset
($this->err['main']['sub']['TOBEDELETED']); } } [/code] Where I want to
unset
only key TOBEDELETED . What may cause this?
Re: Problems with session_unregister and / or unset()
Programming
Web Development
20 Years Ago
by samaru
Just a quick question: are you trying this on a Windows server or Linux? I had a similar problem where I could not
unset
the session variables. I tried everything and posted on every forum I could think of. Nothing worked. I moved the app to a Linux server and it worked. Strange. Maybe a fault with the version of PHP I was using.
Re: Strange unset() problem
Programming
Web Development
15 Years Ago
by fenixZ
… normally get that error if you try to assign the
unset
to a variable.[/QUOTE] Well not exactly the same, my… class is much bigger, but the structure and line where
unset
is used is almost the same. I really do not…
Re: Strange unset() problem
Programming
Web Development
15 Years Ago
by pritaeas
Is this exactly the code that gives you the error ? I'm asking because you would normally get that error if you try to assign the
unset
to a variable.
Re: $_REQUEST unset
Programming
Web Development
15 Years Ago
by becraig
ok I am able to
unset
the array using: [code] <?php foreach ($_REQUEST as $i => $value) {
unset
($_REQUEST[$i]);} header ("Location: http://www.mysite.com/logoutaction.php"); ?> [/code] However if I do not do the header the array clears, but when I do the header the array stays in tact ????
Sql2k, How to set or unset IDENTITY Property of a column through code or stored
Programming
Software Development
20 Years Ago
by sham
How to set or
unset
IDENTITY Property of a column through code or stored procedure for Sql Server 2000. We are adding some data into a table and then wish to set the Indentity property thr' code or stored procedure. Any help appreciated. Regards [Sham]
is it advisable to unset() variables once they aren't needed?
Programming
Web Development
15 Years Ago
by danielpataki
…. Once I have the end variable is it advisable to
unset
() the ones I don't use any more? Does this…
Re: is it advisable to unset() variables once they aren't needed?
Programming
Web Development
15 Years Ago
by hireaprogrammer
[url]http://in.php.net/
unset
[/url] Please check above link ..that's can help you better ...
$_REQUEST unset
Programming
Web Development
15 Years Ago
by becraig
… works. I have tried the following with no luck [code]
unset
($_REQUEST['login]'); header ("Location: http://www.mysite.com/mypage…
Re: $_REQUEST unset
Programming
Web Development
15 Years Ago
by cwarn23
There was a bug in your code. Try the following: [CODE=php]
unset
($_REQUEST['login']); //quote fixed header ("Location: http://www.mysite.com/mypage.php");[/CODE]
Re: $_REQUEST unset
Programming
Web Development
15 Years Ago
by somedude3488
Can you explain your system better? Honestly, I don't see why you need to
unset
something in the _REQUEST array. There is probably a different way to go about what you are trying to do.
HTML onChange unset PHP session?
Programming
Web Development
15 Years Ago
by AdventDeo
Is there any way to do this? I have multiple drop down lists and depending on which drop down is selected I want it to
unset
some sessions. Do I need to use AJAX for this?
Re: HTML onChange unset PHP session?
Programming
Web Development
15 Years Ago
by AdventDeo
… session_start(); $data=$_GET['data']; $str=$_GET['str']; if ($data=='someID') {
unset
($_SESSION['session']); } ?>[/CODE]
Probably n00b question | $_POST key unset?
Programming
Web Development
14 Years Ago
by Triztian
…; [/CODE] My opinion: It seems that the $_POST['hhdData'] is
unset
after process.php checks for its existence, since I echoed…
Re: UNSET Session And Destrpy Session Question
Programming
Web Development
2 Years Ago
by borobhaisab
Folks, Are these 4 same: 1 ```` function unset_sessions() { $_SESSION['registration_form_display']=''; $_SESSION['registration_form_button_clicked']=''; $_SESSION['domain']=''; $_SESSION['domain_email_account']=''; $_SESSION['domain_email']=''; $_SESSION['password']=''; $_SESSION['errors']=''; } ```` 2 ```` …
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC